Sort search results alphabetically
This commit is contained in:
parent
2c9fab28a4
commit
be215c85da
1 changed files with 1 additions and 1 deletions
|
@ -167,7 +167,7 @@ defmodule FreediveWeb.ServiceLive.Components do
|
||||||
|
|
||||||
def items_block(assigns) do
|
def items_block(assigns) do
|
||||||
~H"""
|
~H"""
|
||||||
<%= for {_name, item} <- @items do %>
|
<%= for {_name, item} <- Enum.sort(@items, fn {a, _}, {b, _} -> a < b end) do %>
|
||||||
<.service_preview item={item} selected_item={@selected_item} />
|
<.service_preview item={item} selected_item={@selected_item} />
|
||||||
<% end %>
|
<% end %>
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue