@cdmx/wappler_ag_grid 1.4.3 → 1.4.4
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.
- package/dmx-ag-grid.js +8 -3
- package/package.json +1 -1
package/dmx-ag-grid.js
CHANGED
|
@@ -722,11 +722,16 @@ dmx.Component('ag-grid', {
|
|
|
722
722
|
}
|
|
723
723
|
// comparator for case-insensitive sorting
|
|
724
724
|
const caseInsensitiveComparator = (valueA, valueB) => {
|
|
725
|
-
if (
|
|
726
|
-
return valueB ?
|
|
725
|
+
if (valueA === null || valueA === undefined) {
|
|
726
|
+
return valueB === null || valueB === undefined ? 0 : -1;
|
|
727
727
|
}
|
|
728
|
-
|
|
728
|
+
|
|
729
|
+
if (valueB === null || valueB === undefined) {
|
|
730
|
+
return 1;
|
|
729
731
|
}
|
|
732
|
+
|
|
733
|
+
return valueA.toLowerCase().localeCompare(valueB.toLowerCase());
|
|
734
|
+
};
|
|
730
735
|
dateFilterParams = {
|
|
731
736
|
comparator: function (filterLocalDateAtMidnight, cellValue) {
|
|
732
737
|
var cellDate = new Date(cellValue);
|