Fixed job history sorting