sort records by acquisition date in a case of empty search query and sort by is not set