mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 07:47:30 +02:00
local compare in entity list sorting
This commit is contained in:
parent
936837c886
commit
2247dd3471
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