added scalability to usearch sort function