mirror of
https://github.com/lubosz/overte.git
synced 2025-08-04 20:08:01 +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)) {
|
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