Commit 1db6473209f5f7e8e09d1b484538ef870272f689

Authored by Andrey Karpikov
1 parent c5f2dbf3

check sorting

... ... @@ -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] ) }
... ...
1 1 module Kanjai
2   - VERSION = "0.0.247"
  2 + VERSION = "0.0.248"
3 3 end
... ...