Use both build status and job ID to sort

This ensures that the job ordering will be stable.