fixed overloads for searching and added sort