fix sort problem (due to inconsistent  date format)