From 83b145d263ad3ec71e6d6551229ddf82c33e16dd Mon Sep 17 00:00:00 2001 From: Nicholas Skinsacos Date: Wed, 20 Dec 2023 21:36:55 -0500 Subject: [PATCH] Include description in order to alphabetize the list by day (#48) --- lib/todo/notebook.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/todo/notebook.ex b/lib/todo/notebook.ex index 9eadee3..336c5fe 100644 --- a/lib/todo/notebook.ex +++ b/lib/todo/notebook.ex @@ -21,7 +21,7 @@ defmodule Todo.Notebook do query = from i in Item, where: i.user_id == ^user_id, - order_by: [desc: i.status, asc: i.due_date] + order_by: [desc: i.status, asc: i.due_date, asc: i.description] Repo.all(query) end