@insticc/react-datagrid-2 1.0.26 → 1.0.27

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.
@@ -194,14 +194,7 @@ var DataGrid = function DataGrid(_ref) {
194
194
  grow: (_column$grow = column.grow) !== null && _column$grow !== void 0 ? _column$grow : true,
195
195
  enableClickToCopy: (_column$enableClickTo = column.enableClickToCopy) !== null && _column$enableClickTo !== void 0 ? _column$enableClickTo : false,
196
196
  enableColumnActions: (_column$enableColumnA = column.enableColumnActions) !== null && _column$enableColumnA !== void 0 ? _column$enableColumnA : false,
197
- sortingFn: column.isDateColumn ? function (rowA, rowB, columnId) {
198
- var dateA = rowA.getValue(columnId) ? new Date(rowA.getValue(columnId)).getTime() : null;
199
- var dateB = rowB.getValue(columnId) ? new Date(rowB.getValue(columnId)).getTime() : null;
200
- if (dateA === null) return 1;
201
- if (dateB === null) return -1;
202
- return dateA - dateB; // Sort by timestamp
203
- } : undefined,
204
- // Use default sorting for non-date columns
197
+ // sortingFn: --> basic default, datetime for date
205
198
  Cell: function Cell(props) {
206
199
  return column.cellClass ? /*#__PURE__*/_react["default"].createElement("div", {
207
200
  className: column.cellClass
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insticc/react-datagrid-2",
3
- "version": "1.0.26",
3
+ "version": "1.0.27",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "scripts": {