Please sort the date in the Database and not in python.