Sparity interview question

Sort and print the time and date. Can Some basic calculation.