Added sorting on results page