Add some braces
Sort the array before running the data