reverse structure order

This commit is contained in:
Rueshyna 2012-12-27 17:54:52 +08:00
parent 3346f83923
commit a7cf6dd694
1 changed files with 1 additions and 1 deletions

View File

@ -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>'