Added sorting of results