From 78612eaa06d0c517b9dbde712528491cec1872b5 Mon Sep 17 00:00:00 2001 From: James Brechtel Date: Wed, 8 Jul 2026 08:59:13 -0400 Subject: [PATCH] Fix cook history ordering: show newest entries first fetchAllEntries had ORDER BY cooked_date ASC but the doc comment claimed 'newest first'. Changed to DESC to match fetchEntries behavior and fix the cook-history page (most recent at top). --- src/Roux/CookLog.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Roux/CookLog.hs b/src/Roux/CookLog.hs index cd9fd2f..df15c8d 100644 --- a/src/Roux/CookLog.hs +++ b/src/Roux/CookLog.hs @@ -131,4 +131,4 @@ fetchAllEntries conn = SQL.query_ conn "SELECT id, recipe_filename, cooked_date, comment, created_at \ - \ FROM cook_log ORDER BY cooked_date ASC, id DESC" + \ FROM cook_log ORDER BY cooked_date DESC, id DESC"