@tilde-nlp/ngx-common 8.1.72 → 8.1.73
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.
|
@@ -684,8 +684,8 @@ class SortHelper {
|
|
|
684
684
|
if (!sortingValueKey) {
|
|
685
685
|
return a.localeCompare(b);
|
|
686
686
|
}
|
|
687
|
-
const aTranslated = a[sortingValueKey]
|
|
688
|
-
const bTranslated = b[sortingValueKey]
|
|
687
|
+
const aTranslated = a[sortingValueKey]?.toLowerCase() ?? '';
|
|
688
|
+
const bTranslated = b[sortingValueKey]?.toLowerCase() ?? '';
|
|
689
689
|
return aTranslated.localeCompare(bTranslated);
|
|
690
690
|
});
|
|
691
691
|
return values;
|