made sortByTimeTest actually sort by time