Added sorting options to the pin array