mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
Merge pull request #14860 from thoys/fix/create/entityListUnderscoreFirstSorting
Case 19385: local compare in entity list sorting
This commit is contained in:
commit
b46fb7cfe7
1 changed files with 3 additions and 0 deletions
|
@ -681,6 +681,9 @@ function loaded() {
|
|||
if (isNullOrEmpty(valueB)) {
|
||||
return (isDefaultSort ? -1 : 1) * (isAscendingSort ? 1 : -1);
|
||||
}
|
||||
if (typeof(valueA) === "string") {
|
||||
return valueA.localeCompare(valueB);
|
||||
}
|
||||
return valueA < valueB ? -1 : 1;
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue