Sorting out the search result for the different view ports