jsl-ui 9.28.4 → 9.28.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -84,7 +84,12 @@ export class ExcelFilter {
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
// TODO: use custom comparer when available
|
|
87
|
-
|
|
87
|
+
try {
|
|
88
|
+
sortedValues.sort((a, b) => a.txt.toLocaleLowerCase() < b.txt.toLocaleLowerCase() ? -1 : (a.txt.toLocaleLowerCase() > b.txt.toLocaleLowerCase() ? 1 : 0));
|
|
89
|
+
}
|
|
90
|
+
catch (e) {
|
|
91
|
+
// some things are not sortable or not toLocalLowerCase-able
|
|
92
|
+
}
|
|
88
93
|
let visibleValues = sortedValues;
|
|
89
94
|
const checkedValues = { ...oldCheckedValues };
|
|
90
95
|
const cbContainer = document.createElement("div");
|