sort fix
This commit is contained in:
parent
b80460a569
commit
aad5e268cf
|
@ -9,7 +9,7 @@ class Admin::RegisteredSitesController < OrbitAdminController
|
||||||
@tags = @module_app.tags
|
@tags = @module_app.tags
|
||||||
@categories = @module_app.categories.enabled
|
@categories = @module_app.categories.enabled
|
||||||
@filter_fields = filter_fields_without_status(@categories, @tags)
|
@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?
|
if request.xhr?
|
||||||
render :partial => "index"
|
render :partial => "index"
|
||||||
|
|
Loading…
Reference in New Issue