Adding sorting to search page