Posts by Diego Howes • 43 points
1 post
-
4
votes3
answers603
viewsQ: Problem sorting an array with Sort()
One of them occurs when I wish to order a array number. Ex: var a = [44,7,5,6,4,2,1]; a.sort(); console.log(a); The expected result would be: [1, 2, 4, 5, 6, 7, 44], but what is always returned to…