sort job history; should fix #252