二级目录自动排序功能

This commit is contained in:
huang 2016-05-06 15:09:08 +08:00
parent 526fe8ff13
commit 8f492f6108
1 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,4 @@
<% sub_domains = field.sub_domains %>
<% sub_domains = field.sub_domains.order("priority") %>
<% if sub_domains %>
<% sub_domains.each do |subdomain| %>
<ul class="orgSubList">