Changed the workings of job controller sort method