Sorting categories into alphabetical order