Fixed sorting issues on resultsView