fix order bug
This commit is contained in:
parent
3953c21ae2
commit
3a41e9530f
5 changed files with 6 additions and 6 deletions
|
|
@ -65,9 +65,9 @@ class User < ActiveRecord::Base
|
|||
def self.natural_order
|
||||
# would be sensible to match ApplicationController#show_user
|
||||
if FoodsoftConfig[:use_nick]
|
||||
order('nick ASC')
|
||||
order('nick')
|
||||
else
|
||||
order('first_name ASC, last_name ASC')
|
||||
order('first_name', 'last_name')
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue