Sort results by time (ClassesDBHelperUI)