Fix cook history ordering: show newest entries first
Build and Deploy / build-and-deploy (push) Successful in 19m31s
Build and Deploy / build-and-deploy (push) Successful in 19m31s
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).
This commit is contained in:
+1
-1
@@ -131,4 +131,4 @@ fetchAllEntries conn =
|
|||||||
SQL.query_
|
SQL.query_
|
||||||
conn
|
conn
|
||||||
"SELECT id, recipe_filename, cooked_date, comment, created_at \
|
"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"
|
||||||
|
|||||||
Reference in New Issue
Block a user