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 42e1a12 commit 550a1f7Copy full SHA for 550a1f7
README.md
@@ -821,8 +821,8 @@ defaultSortMethod = (a, b) => {
821
a = (a === null || a === undefined) ? -Infinity : a
822
b = (b === null || b === undefined) ? -Infinity : b
823
// force any string values to lowercase
824
- a = a === 'string' ? a.toLowerCase() : a
825
- b = b === 'string' ? b.toLowerCase() : b
+ a = typeof a === 'string' ? a.toLowerCase() : a
+ b = typeof b === 'string' ? b.toLowerCase() : b
826
// Return either 1 or -1 to indicate a sort priority
827
if (a > b) {
828
return 1
0 commit comments