local compare in entity list sorting

This commit is contained in:
Thijs Wenker 2019-02-06 18:24:40 +01:00
parent 936837c886
commit 2247dd3471

View file

@ -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;
});
});