fix date sort