Skip to content

Commit

Permalink
Merge pull request #636 from blajos/master
Browse files Browse the repository at this point in the history
Use sort on hashes in template perl/plugin.erb
  • Loading branch information
jyaworski authored Jan 27, 2017
2 parents 391f683 + fe7773d commit fc068f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/plugin/perl/plugin.erb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<% end -%>
<% elsif value.is_a?(Hash) -%>
<<%=key%>>
<% value.each do |k,v| -%>
<% value.sort.each do |k,v| -%>
<% if v.is_a?(String) -%>
<%=k%> "<%=v%>"
<% elsif v.is_a?(Array) -%>
Expand All @@ -26,7 +26,7 @@
<% end -%>
<% elsif v.is_a?(Hash) -%>
<<%=k%>>
<% v.each do |i,j| -%>
<% v.sort.each do |i,j| -%>
<% if j.is_a?(Array) -%>
<% j.each do |k| -%>
<%=i%> "<%=k%>"
Expand Down

0 comments on commit fc068f5

Please sign in to comment.