Sort functionality

closes #276 
Is the idea to put all those with empty dates at the front of the list?