配列をソートする処理を追加しました #1

Merged
riq0h merged 2 commits from add-sort-func into main 2024-02-23 22:04:23 +09:00
Showing only changes of commit ac97a66e24 - Show all commits

View file

@ -1,6 +1,6 @@
var sortNumber = function (number) {
number.sort(function (a, b) {
if (a == b) {
if (a === b) {
return 0;
}
return a < b ? -1 : 1;