Order jobs by id