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