そのとおりだ
This commit is contained in:
parent
c6690b2fe1
commit
ac97a66e24
1 changed files with 1 additions and 1 deletions
2
sort.js
2
sort.js
|
@ -1,6 +1,6 @@
|
||||||
var sortNumber = function (number) {
|
var sortNumber = function (number) {
|
||||||
number.sort(function (a, b) {
|
number.sort(function (a, b) {
|
||||||
if (a == b) {
|
if (a === b) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
return a < b ? -1 : 1;
|
return a < b ? -1 : 1;
|
||||||
|
|
Loading…
Reference in a new issue