Resolve comparator bug for both dateline and checkuncheck sorting
Resolve comparator bug for both dateline and checkuncheck sorting

CS2103JAN2017-W09-B3/main,CS2103JAN2017-W09-B3/main,CS2103JAN2017-W09-B3/main