working on sort search