updated sort/search