Fix for #217: Sort milestones by due date

Open milestones are now sorted by due date ascending. I've added sorting of closed milestones by close date descending, because otherwise it looked random.