Add sorting to result page