Make collection ordered by purchase by default

This commit is contained in:
Claudio Ortolina
2025-04-04 13:58:25 +01:00
parent 8de88fcf72
commit 8b846298a7
4 changed files with 21 additions and 21 deletions
@@ -12,7 +12,7 @@ defmodule MusicLibraryWeb.CollectionLive.Index do
query: "",
page: 1,
page_size: 20,
order: :alphabetical
order: :purchase
}
@impl true
@@ -78,7 +78,7 @@ defmodule MusicLibraryWeb.CollectionLive.Index do
defp apply_action(socket, :index, params) do
query = params["query"] || ""
order = parse_order(params["order"] || "alphabetical")
order = parse_order(params["order"] || "purchase")
total_records = Collection.search_records_count(query)
record_list_params =