fix order bug

This commit is contained in:
wvengen 2014-05-06 10:51:45 +02:00
parent 3953c21ae2
commit 3a41e9530f
5 changed files with 6 additions and 6 deletions

View file

@ -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