Time sorting is incorrect

Case one:
12:00 is sorted before 11:00

Case two:
00:00 is sorted before 23:00