Categorize data in alphabetical order