def extract_preferred_order_from_config
      case config['order']
      when nil
        nil # No custom order specified
      when Array