Completed jobs stay completed until Friday at 17:00, then reset to pending.
Nearest deadline appears first. Completed tasks move to the bottom.