mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-11 02:28:45 +00:00
Order users by nickname
This commit is contained in:
parent
6d6f48d079
commit
cb2bdd5c07
|
@ -773,7 +773,7 @@ defmodule Pleroma.User do
|
||||||
}) :: {:ok, [Pleroma.User.t()], number()}
|
}) :: {:ok, [Pleroma.User.t()], number()}
|
||||||
def search_for_admin(%{query: nil, local: local, page: page, page_size: page_size}) do
|
def search_for_admin(%{query: nil, local: local, page: page, page_size: page_size}) do
|
||||||
query =
|
query =
|
||||||
from(u in User, order_by: u.id)
|
from(u in User, order_by: u.nickname)
|
||||||
|> maybe_local_user_query(local)
|
|> maybe_local_user_query(local)
|
||||||
|
|
||||||
paginated_query =
|
paginated_query =
|
||||||
|
|
Loading…
Reference in a new issue