Skip to content

Commit 9ae39e8

Browse files
author
AJ Christensen
committed
CHEF-129: sort the tree output
1 parent 26dca95 commit 9ae39e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

chef-server-slice/app/helpers/nodes_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def build_tree(node)
5757
list << "<dd>#{value}</dd>"
5858
end
5959
end
60-
node.attribute.each(&walk)
60+
node.attribute.sort{ |a,b| a[0] <=> b[0] }.each(&walk)
6161
list << "</dl>"
6262
end
6363
end

0 commit comments

Comments
 (0)