@secondstaxorg/sscomp 2.1.16 → 2.1.17
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/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
- package/types/components/TablePrimary/type.d.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -27178,7 +27178,7 @@ const TablePrimary = (props) => {
|
|
|
27178
27178
|
|
|
27179
27179
|
if (sortedCol !== column){
|
|
27180
27180
|
if (colIsDate){
|
|
27181
|
-
sorted = tbodyOri.sort((a,b) => new Date(
|
|
27181
|
+
sorted = tbodyOri.sort((a,b) => new Date(b[column]).getTime().toString().localeCompare(new Date(a[column]).getTime().toString()));
|
|
27182
27182
|
}else {
|
|
27183
27183
|
sorted = tbodyOri.sort((a,b) => a[column].localeCompare(b[column]));
|
|
27184
27184
|
}
|
|
@@ -27187,7 +27187,7 @@ const TablePrimary = (props) => {
|
|
|
27187
27187
|
}else {
|
|
27188
27188
|
if (sortDirection === 'desc') {
|
|
27189
27189
|
if (colIsDate){
|
|
27190
|
-
sorted = tbodyOri.sort((a,b) => new Date(
|
|
27190
|
+
sorted = tbodyOri.sort((a,b) => new Date(b[column]).getTime().toString().localeCompare(new Date(a[column]).getTime().toString()));
|
|
27191
27191
|
}else {
|
|
27192
27192
|
sorted = tbodyOri.sort((a,b) => a[column].localeCompare(b[column]));
|
|
27193
27193
|
}
|
|
@@ -27195,7 +27195,7 @@ const TablePrimary = (props) => {
|
|
|
27195
27195
|
setSortedCol(column);
|
|
27196
27196
|
}else {
|
|
27197
27197
|
if (colIsDate){
|
|
27198
|
-
sorted = tbodyOri.sort((a,b) => new Date(
|
|
27198
|
+
sorted = tbodyOri.sort((a,b) => new Date(a[column]).getTime().toString().localeCompare(new Date(b[column]).getTime().toString()));
|
|
27199
27199
|
}else {
|
|
27200
27200
|
sorted = tbodyOri.sort((a,b) => b[column].localeCompare(a[column]));
|
|
27201
27201
|
}
|