组织列表时间倒序排列

This commit is contained in:
linchun 2016-03-15 16:59:32 +08:00
parent 7d5a5f1de2
commit 69ec475752
1 changed files with 1 additions and 1 deletions

View File

@ -390,7 +390,7 @@ class AdminController < ApplicationController
#组织
def organization
@organizations = Organization.all
@organizations = Organization.find_by_sql("SELECT * FROM organizations ORDER BY created_at DESC")
respond_to do |format|
format.html
end