From 2806dd35a9279322149dc779408cafeca4dbe277 Mon Sep 17 00:00:00 2001 From: "Matt K. Fu" Date: Thu, 23 May 2013 14:03:18 +0800 Subject: [PATCH] spen's fix for user --- app/models/user/user.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/user/user.rb b/app/models/user/user.rb index 4a01a71c..51834f8e 100644 --- a/app/models/user/user.rb +++ b/app/models/user/user.rb @@ -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