added sorting by date by default after a search