配列をソートする処理を追加しました #1
1 changed files with 1 additions and 1 deletions
2
sort.js
2
sort.js
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue