Merge pull request #14860 from thoys/fix/create/entityListUnderscoreFirstSorting

Case 19385: local compare in entity list sorting
This commit is contained in:
John Conklin II 2019-02-08 14:56:32 -08:00 committed by GitHub
commit b46fb7cfe7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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