fix sorting by date bug. Now sorting should be from newest to oldest