Set up Search and Sort (with Brenden changes)