Implemented listener and Time comparator. Sorting works almost correctly