add code to view which two time elements violate the order