Hi guys I can\'t figure out why this code doesn\'t work. Could you please shed some light on? I create an array and try to sort it and then display the content on the page. if I
How about :
arr.sort(function(a, b) { return a - b; });
to do the sort() ?