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