array.sort fixed