Make test result sorting more reasonable