Fix the list sort by date time bug