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.
@@ -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.