fix sort date problem