title: Rails select_tag alphabetical order
body: <p>I have this <code>select_tag</code> </p>
  
  <pre><code>select_tag :id, options_for_select(Portal.all.collect{|p| [p.name, portal_datum_path(p.id)]}, [@portal.name, portal_datum_path(@portal)]), :onChange =&gt; "window.location=($(this).val());"
  </code></pre>
  
  <p>It allows a user to select a portal on which to see certain elements i want to display these portals in alphabetical order. </p>
  
  <p>I tried ordering the :name in the controller but no win.</p>
  
  <pre><code>def index
    @portals = Portal.with_name_or_subdomain(params[:keyword]).order(:name).limit(100)
  end
  </code></pre>
  
  <p>I looked at the rails docs there are no built in options within the select_tag itself is there some secret option that i should be using?</p>