Sort list of jobs according to status and completion time.