Fix order of tasks with warning or error status.