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