Order milestones by due date. 

Closes #3798.