Node.js examples for Algorithm:Sort
Sort an array with ascending order
number.asc = function (arr) { arr.sort(function (a, b) { return a - b; });/*from w w w .j av a 2s. c o m*/ return arr; };