Showing
2 changed files
with
3 additions
and
3 deletions
| ... | ... | @@ -79,8 +79,8 @@ module Kanjai |
| 79 | 79 | subpart = page_template.template_parts.where(code: page_content.type_content).first |
| 80 | 80 | if subpart |
| 81 | 81 | markers_position = {} |
| 82 | - subpart.field_options.sort_by{|item| item[:name] }.each_with_index do |item, index| | |
| 83 | - markers_position[item[:name]] = index + 1 | |
| 82 | + subpart.field_options.sort_by{|item| item[:itemName] }.each_with_index do |item, index| | |
| 83 | + markers_position[item[:itemName]] = index + 1 | |
| 84 | 84 | end |
| 85 | 85 | |
| 86 | 86 | return markers.sort{|a,b| (markers_position[a.marker] <=> markers_position[b.marker] ) } | ... | ... |