Added sorting to card list.