Order search results properly, paginate them too