fixed sorted search