mirror of
https://github.com/JulianGro/overte.git
synced 2025-05-05 10:28:03 +02: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)) {
|
if (isNullOrEmpty(valueB)) {
|
||||||
return (isDefaultSort ? -1 : 1) * (isAscendingSort ? 1 : -1);
|
return (isDefaultSort ? -1 : 1) * (isAscendingSort ? 1 : -1);
|
||||||
}
|
}
|
||||||
|
if (typeof(valueA) === "string") {
|
||||||
|
return valueA.localeCompare(valueB);
|
||||||
|
}
|
||||||
return valueA < valueB ? -1 : 1;
|
return valueA < valueB ? -1 : 1;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue