add more digits to the dates to sort correctly, streamline solution