pub fn sort_tasks(tasks: &mut [Task])
Sorts tasks for display: active first, then by the earliest of next firing and due time, then by creation.