modified compare

situation where you have to compare 24(12am) and
1am 24 must win although it comes "after" 1