From 54cd8cdcb083db6b0f8950dd5a14e6bd5428345c Mon Sep 17 00:00:00 2001 From: sto Date: Tue, 10 Mar 2026 15:55:31 +0100 Subject: [PATCH] Sort contests showing most recently created first --- app/controllers/contests_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/contests_controller.rb b/app/controllers/contests_controller.rb index 320f74d..88c7df2 100644 --- a/app/controllers/contests_controller.rb +++ b/app/controllers/contests_controller.rb @@ -10,7 +10,7 @@ class ContestsController < ApplicationController def index authorize :contest - @contests = current_user.contests.includes([ :contestants, puzzles: [ :image_attachment ] ]) + @contests = current_user.contests.includes([ :contestants, puzzles: [ :image_attachment ] ]).order(created_at: :desc) @title = I18n.t("contests.index.title", username: current_user.username) end