Sort the dropdown menus