When sorting jobs and priorities are equal sort by job_id.