Use both build status and job ID to sort

This ensures that the job ordering will be stable.
Merge pull request #29 from adrienthebo/stable-job-sort

Use both build status and job ID to sort