Skip to content

Commit

Permalink
Include description in order to alphabetize the list by day (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
nskins authored Dec 21, 2023
1 parent 29b6a38 commit 83b145d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/todo/notebook.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 83b145d

Please sign in to comment.