Sort the categories on the main page.