Sort the projects in the Projects dropdown.
Don't keep fetching the list of projects, unless the user has no projects.
move sorting logic into a function sortProjectsList