Permalink
Browse files

Making results sorted by name

  • Loading branch information...
pat committed Sep 29, 2008
1 parent b6fce2d commit f8d22ce5cbd74d23249afa5d1d64cf881c4be17b
Showing with 3 additions and 2 deletions.
  1. +3 −2 app/controllers/contacts_controller.rb
@@ -6,8 +6,9 @@ def index
@contacts = Contact.search(
(params[:search] || ""),
- :with => {:state_id => params[:state_id].to_i},
- :page => (params[:page] || 1)
+ :with => {:state_id => params[:state_id].to_i},
+ :page => (params[:page] || 1),
+ :order => :name
)
respond_to do |format|

0 comments on commit f8d22ce

Please sign in to comment.