Just call sort() on items array and it sorts array elements in ascending order. Code: var items = [5,3,7,6,2,9]; console.log(items ...
確定! 回上一頁