Suppose I have an array
var arr = [1,5,"ahsldk",10,55,3,2,7,8,1,2,75,"abc","huds"];
and I try sorting it, I get something like ...
[1, 1, 10, 2, 2, 3, 5, 55, 7, 75, 8, "abc", "ahsldk", "huds"]
notice 10 is before 2, how can I have something more like
[1,1,2,2,3,5 ..., "abc", "ahs...",...]
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…