From ba25f8bb250fd7adf0f3c5ec58c9e89fe5a29259 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Mon, 27 Aug 2018 19:32:31 +0200 Subject: Gallery links: Sort index with newest galleries first. This disregards the manual order specified in the backend. My guess is this is what we want most of the time. The backend is still sorted by specified order. --- .../app/controllers/refinery/gallery_links/gallery_links_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/extensions/gallery_links/app/controllers/refinery/gallery_links/gallery_links_controller.rb b/vendor/extensions/gallery_links/app/controllers/refinery/gallery_links/gallery_links_controller.rb index 8fcbdbe..1f79f3d 100644 --- a/vendor/extensions/gallery_links/app/controllers/refinery/gallery_links/gallery_links_controller.rb +++ b/vendor/extensions/gallery_links/app/controllers/refinery/gallery_links/gallery_links_controller.rb @@ -22,7 +22,7 @@ module Refinery protected def find_all_gallery_links - @gallery_links = GalleryLink.order('position ASC') + @gallery_links = GalleryLink.order('date DESC') logger.debug "Found #{@gallery_links.length} galleries..." end -- cgit v1.2.3