reverse structure order
This commit is contained in:
parent
3346f83923
commit
a7cf6dd694
|
@ -32,7 +32,7 @@ module Admin::ItemsHelper
|
||||||
if !parent.children.entries.blank?
|
if !parent.children.entries.blank?
|
||||||
ret = ''
|
ret = ''
|
||||||
ret << "<ol class='#{'sortable' if parent.parent.nil?}'>"
|
ret << "<ol class='#{'sortable' if parent.parent.nil?}'>"
|
||||||
children.reverse.each do |child|
|
children.each do |child|
|
||||||
ret << render_node_and_children(child)
|
ret << render_node_and_children(child)
|
||||||
end
|
end
|
||||||
ret << '</ol>'
|
ret << '</ol>'
|
||||||
|
|
Loading…
Reference in New Issue