got edge case time sorting to work