fixed search and added lastUpdated sort parameter