Fix date sort