Extend select_option functionality by adding sorting keys for options.