Skip to content

Commit 8f8e819

Browse files
authored
Update custom-sort.js
example edit
1 parent 4d2c75e commit 8f8e819

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/custom-sort/custom-sort.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88

99
module.exports = (translations) => {
1010
return Object.keys(translations).sort((keyA, keyB) => {
11-
if (keyA == keyB) {
11+
if (keyA === keyB) {
1212
return 0;
1313
} else if (keyA < keyB) {
1414
return -1;
1515
} else {
1616
return 1;
1717
}
1818
})
19-
};
19+
};

0 commit comments

Comments
 (0)