We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc87874 commit c175338Copy full SHA for c175338
functions/array/ksort.js
@@ -37,10 +37,10 @@ function ksort (inputArr, sort_flags) {
37
break;
38
case 'SORT_NUMERIC': // compare items numerically
39
sorter = function (a, b) {
40
- return (a - b);
+ return ((a+0) - (b+0));
41
};
42
43
- case 'SORT_REGULAR': // compare items normally (don't change types)
+ // case 'SORT_REGULAR': // compare items normally (don't change types)
44
default:
45
46
if (a > b) {
0 commit comments