From 0b345a837759d768299121a7dd4b1252ffdf9bb1 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Tue, 8 Dec 2015 19:18:42 +0800 Subject: [PATCH] sort fix again --- app/models/experience.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/experience.rb b/app/models/experience.rb index ed5df74..5e1dc9c 100644 --- a/app/models/experience.rb +++ b/app/models/experience.rb @@ -77,8 +77,8 @@ class Experience { "pd_datas" => pd_data, - "type-sort" => (p.experience_type.sort_position rescue 1000), - "sort-index" => index.to_s + "type-sort" => (p.experience_type.sort_position.to_i rescue 1000), + "sort-index" => index } end