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 2471d75 commit 3a33b93Copy full SHA for 3a33b93
internal/identifiers.js
@@ -2,6 +2,10 @@
2
3
const numeric = /^[0-9]+$/
4
const compareIdentifiers = (a, b) => {
5
+ if (typeof a === 'number' && typeof b === 'number') {
6
+ return a === b ? 0 : a < b ? -1 : 1
7
+ }
8
+
9
const anum = numeric.test(a)
10
const bnum = numeric.test(b)
11
0 commit comments