Start to implement sorting

2 jobs for master in 43 minutes and 25 seconds (queued for 101 minutes and 37 seconds)