Added sorting to tag lists