From aad5e268cfeb74b96fd7e12a18e9119563813aab Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Tue, 30 Dec 2014 20:22:06 +0800 Subject: [PATCH] sort fix --- app/controllers/admin/registered_sites_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/registered_sites_controller.rb b/app/controllers/admin/registered_sites_controller.rb index 16a0f31..9d1dc04 100644 --- a/app/controllers/admin/registered_sites_controller.rb +++ b/app/controllers/admin/registered_sites_controller.rb @@ -9,7 +9,7 @@ class Admin::RegisteredSitesController < OrbitAdminController @tags = @module_app.tags @categories = @module_app.categories.enabled @filter_fields = filter_fields_without_status(@categories, @tags) - @registeredsites = search_data(@registeredsites,[:title]).page(params[:page]).per(10) + @registeredsites = search_data(@registeredsites,[:title]).page(params[:page]).per(10).desc(:created_at) if request.xhr? render :partial => "index"