Added sorting to card search results