Change data structure to sort by alphabetical order