fix shixun menus order

dev_home
p31729568 5 years ago
parent 0969d323c5
commit 4797ccb163

@ -30,15 +30,15 @@
# end # end
# end # end
json.array! @sub_reps_map.keys do |rep| json.array! @sub_reps_map.keys.sort_by(&:updated_at).reverse do |rep|
json.extract! rep, :id, :name json.extract! rep, :id, :name
json.sub_repertoires do json.sub_repertoires do
json.array! @sub_reps_map[rep] do |sub_rep| json.array! @sub_reps_map[rep].sort_by(&:updated_at).reverse do |sub_rep|
json.extract! sub_rep, :id, :name json.extract! sub_rep, :id, :name
json.tags do json.tags do
json.array! @tags_map[sub_rep] do |tag| json.array! @tags_map[sub_rep].sort_by(&:updated_at).reverse do |tag|
json.extract! tag, :id, :name json.extract! tag, :id, :name
end end
end end

Loading…
Cancel
Save