ywana-core8 0.0.780 → 0.0.781
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.cjs +6 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +6 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +6 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/table.js +6 -0
- package/src/html/table.test.js +8 -8
package/dist/index.cjs
CHANGED
@@ -1764,7 +1764,12 @@ var DataTable = function DataTable(props) {
|
|
1764
1764
|
}
|
1765
1765
|
|
1766
1766
|
var keySort = function keySort(a, b, direction) {
|
1767
|
-
direction = direction !== null ? direction : 1;
|
1767
|
+
direction = direction !== null ? direction : 1; // check if a and b are numbers and compare as numbers
|
1768
|
+
|
1769
|
+
if (!isNaN(a) && !isNaN(b)) {
|
1770
|
+
a = Number(a);
|
1771
|
+
b = Number(b);
|
1772
|
+
}
|
1768
1773
|
|
1769
1774
|
if (a === b) {
|
1770
1775
|
// If the values are the same, do not switch positions.
|