Closes #860 : Sort assignments in dashboard

 - Adding a order of assignments in the MainController
 - Adding a test