date sort corrected