spen's fix for user

This commit is contained in:
Matt K. Fu 2013-05-23 14:03:18 +08:00
parent 54a35b30be
commit 2806dd35a9
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ class User
def self.get_role_member_data_by_sort(role_status_id)
a = Array.new
where(:role_status_ids=>role_status_id).desc(:_id).collect{|t| a << [ get_member_list_attribute_value(t.id,"staff","job_title")['val'], t ] }
where(:role_status_ids=>role_status_id).desc(:_id).collect{|t| a << [ get_member_list_attribute_value(t.id,"staff","job_title")['val'].to_i, t ] }
member_data = a.sort
member_data_tmp = member_data.collect {|v| v[1] }
end