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.modern.js
CHANGED
@@ -1756,7 +1756,12 @@ var DataTable = function DataTable(props) {
|
|
1756
1756
|
}
|
1757
1757
|
|
1758
1758
|
var keySort = function keySort(a, b, direction) {
|
1759
|
-
direction = direction !== null ? direction : 1;
|
1759
|
+
direction = direction !== null ? direction : 1; // check if a and b are numbers and compare as numbers
|
1760
|
+
|
1761
|
+
if (!isNaN(a) && !isNaN(b)) {
|
1762
|
+
a = Number(a);
|
1763
|
+
b = Number(b);
|
1764
|
+
}
|
1760
1765
|
|
1761
1766
|
if (a === b) {
|
1762
1767
|
// If the values are the same, do not switch positions.
|