fix datetime sort