#main_div
  - url = url_for(:action => 'resize_field_changed', :id => @record.id.to_s)

  = render :partial => "layouts/flash_msg"

  %h3
    = _('Reconfigure Instance')
  .form-horizontal
    .form-group
      %label.col-md-2.control-label
        = _('Current Flavor')
      .col-md-8
        = @record.flavor.name_with_details if @record.flavor
    .form-group
      %label.col-md-2.control-label
        = _('Choose Flavor')
      .col-md-8
        = select_tag('flavor',
            options_for_select(@flavors.sort),
            :class             => "selectpicker",
            "data-miq_sparkle_on" => true, "data-miq_sparkle_off" => true,
            :multiple          => false,
            :id                => "flavor",
            "data-miq_observe" => {:interval => '.5', :url => url}.to_json)
      :javascript
        miqInitSelectPicker();
        miqSelectPickerEvent("flavor", "#{url}");

#main_div
  - url = url_for(:action => 'resize_field_changed', :id => @record.id.to_s)

  = render :partial => "layouts/flash_msg"

  %h3
    = _('Reconfigure Instance')
  .form-horizontal
    .form-group
      %label.col-md-2.control-label
        = _('Current Flavor')
      .col-md-8
        = @record.flavor.name_with_details if @record.flavor
    .form-group
      %label.col-md-2.control-label
        = _('Choose Flavor')
      .col-md-8
        = select_tag('flavor',
            options_for_select(@flavors.sort_by),
            :class             => "selectpicker",
            "data-miq_sparkle_on" => true, "data-miq_sparkle_off" => true,
            :multiple          => false,
            :id                => "flavor",
            "data-miq_observe" => {:interval => '.5', :url => url}.to_json)
      :javascript
        miqInitSelectPicker();
        miqSelectPickerEvent("flavor", "#{url}");

Add sort flavors by id
Add sort flavors by id
