Commit 77267e7e538a8eca743fa8802f9c251af7a594ce

Authored by Andrey Karpikov
1 parent 03d0a469

change sorting

@@ -80,7 +80,7 @@ module Kanjai @@ -80,7 +80,7 @@ module Kanjai
80 if subpart 80 if subpart
81 markers_position = {} 81 markers_position = {}
82 82
83 - (subpart.conditions || []).sort{|a,b| a["name"] <=> b["name"] }.each do |item, index| 83 + (subpart.conditions || []).sort{|a,b| a["name"] <=> b["name"] }.each_with_index do |item, index|
84 markers_position[item["name"]] = index 84 markers_position[item["name"]] = index
85 end 85 end
86 86
1 module Kanjai 1 module Kanjai
2 - VERSION = "0.0.255" 2 + VERSION = "0.0.256"
3 end 3 end