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