customdatatabledev
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -177,4 +177,8 @@ import * as React from 'react'; | ||
const compareValue = isDate | ||
? new Date(a[sortBy]) - new Date(b[sortBy]) | ||
: a[sortBy] - b[sortBy]; | ||
? new Date(a[sortBy]) < new Date(b[sortBy]) | ||
? -1 | ||
: 1 | ||
: a[sortBy] < b[sortBy] | ||
? -1 | ||
: 1; | ||
return compareValue; | ||
@@ -189,4 +193,8 @@ }), | ||
const compareValue = isDate | ||
? new Date(b[sortBy]) - new Date(a[sortBy]) | ||
: b[sortBy] - a[sortBy]; | ||
? new Date(a[sortBy]) > new Date(b[sortBy]) | ||
? -1 | ||
: 1 | ||
: a[sortBy] > b[sortBy] | ||
? -1 | ||
: 1; | ||
return compareValue; | ||
@@ -193,0 +201,0 @@ }), |
{ | ||
"name": "customdatatabledev", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"type": "module", | ||
@@ -13,3 +13,3 @@ "description": "", | ||
"type": "git", | ||
"url": "git+https://github.com/pointingRickyTest/npmtestpack" | ||
"url": "git+https://github.com/Devkumar-parekh/customdatatable" | ||
}, | ||
@@ -16,0 +16,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51130
1297