aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2018-08-27 19:32:31 +0200
committerHarald Eilertsen <haraldei@anduin.net>2018-08-27 19:32:31 +0200
commitba25f8bb250fd7adf0f3c5ec58c9e89fe5a29259 (patch)
tree000273ac2bbe496a86db223fd57453a45be5546e
parent0d91d45dfd0f88063e3b0a1d93e917838d9f0d00 (diff)
downloadhmnoweb-ba25f8bb250fd7adf0f3c5ec58c9e89fe5a29259.tar.gz
hmnoweb-ba25f8bb250fd7adf0f3c5ec58c9e89fe5a29259.tar.bz2
hmnoweb-ba25f8bb250fd7adf0f3c5ec58c9e89fe5a29259.zip
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.
-rw-r--r--vendor/extensions/gallery_links/app/controllers/refinery/gallery_links/gallery_links_controller.rb2
1 files changed, 1 insertions, 1 deletions
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