```ruby
require 'spec_helper'

describe Admin::EcSrgsController do
  login_admin

  describe "index" do
    before(:each) do
      @cites_srg1 = create_ec_srg(:name => 'S1')
      @cites_srg2 = create_ec_srg(:name => 'S2')
    end

    describe "GET index" do
      it "assigns @ec_srgs sorted by name" do
        get :index
        assigns(:ec_srgs).should eq([@cites_srg1, @cites_srg2])
      end
      it "renders the index template" do
        get :index
        response.should render_template("index")
      end
    end
  end

end
```

Fix EC SRGS test by sorting data
user
```ruby
require 'spec_helper'

describe Admin::EcSrgsController do
  login_admin

  describe "index" do
    before(:each) do
      @cites_srg1 = create_ec_srg(:name => 'S1')
      @cites_srg2 = create_ec_srg(:name => 'S2')
    end

    describe "GET index" do
      it "assigns @ec_srgs sorted by name" do
        get :index
        assigns(:ec_srgs).sort.should eq([@cites_srg1, @cites_srg2].sort)
      end
      it "renders the index template" do
        get :index
        response.should render_template("index")
      end
    end
  end

end
```
assistant