Default sort comparer, following same sematics as Array.sort. Consider using defaultComparer to get more logical sorting of numbers.
Note: numbers are sorted in alphabetical order, eg:
[ 10, 20, 5, 100 ].sort(jsComparer); // same as .sort()// Yields: [10, 100, 20, 5] Copy
[ 10, 20, 5, 100 ].sort(jsComparer); // same as .sort()// Yields: [10, 100, 20, 5]
Returns -1 if x is less than y Returns 1 if x is greater than y Returns 0 if x is the same as y
Default sort comparer, following same sematics as Array.sort. Consider using defaultComparer to get more logical sorting of numbers.
Note: numbers are sorted in alphabetical order, eg:
Returns -1 if x is less than y Returns 1 if x is greater than y Returns 0 if x is the same as y