From e12bab6039010409b587e3684e7c729c3e99f3a0 Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Wed, 30 Jul 2014 13:05:38 -0300 Subject: [PATCH] [media-panel-improvements] Use reoder to overwrite order by name --- app/controllers/my_profile/cms_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/my_profile/cms_controller.rb b/app/controllers/my_profile/cms_controller.rb index e25bee5..9b957fb 100644 --- a/app/controllers/my_profile/cms_controller.rb +++ b/app/controllers/my_profile/cms_controller.rb @@ -480,7 +480,7 @@ class CmsController < MyProfileController files = profile.files end - files = files.more_recent + files = files.reorder('created_at DESC') images = files.images generics = files.no_images -- libgit2 0.21.2