Sort todos by deadline