diff --git a/lib/tails_web/components/FilterSidebar/FilterSidebar.ex b/lib/tails_web/components/FilterSidebar/FilterSidebar.ex index 97c2bc0..3778fb2 100644 --- a/lib/tails_web/components/FilterSidebar/FilterSidebar.ex +++ b/lib/tails_web/components/FilterSidebar/FilterSidebar.ex @@ -11,6 +11,10 @@ defmodule FilterSidebar do String.replace(key, ".", "-") end + defp sorted_attrs(attrs) do + Enum.sort_by(attrs, &String.first(elem(&1, 0))) + end + def showFilterSidebar(assigns) do ~H"""