sort and search work again