Sorting the javascript item array.