Merge pull request #29112 from hbina/fix_auto_ordering

Fixed scripts list ordering despite being disabled
This commit is contained in:
Rémi Verschelde 2019-05-24 17:45:33 +02:00 committed by GitHub
commit 147ff2095d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1558,7 +1558,15 @@ struct _ScriptEditorItemData {
bool operator<(const _ScriptEditorItemData &id) const {
return category == id.category ? sort_key < id.sort_key : category < id.category;
if (category == id.category) {
if (sort_key == id.sort_key) {
return index < id.index;
} else {
return sort_key < id.sort_key;
}
} else {
return category < id.category;
}
}
};