Commit cb2bdd5c authored by Maxim Filippov's avatar Maxim Filippov 🌚
Browse files

Order users by nickname

parent 6d6f48d0
......@@ -773,7 +773,7 @@ def get_recipients_from_activity(%Activity{recipients: to}) do
}) :: {:ok, [Pleroma.User.t()], number()}
def search_for_admin(%{query: nil, local: local, page: page, page_size: page_size}) do
query =
from(u in User, order_by: u.id)
from(u in User, order_by: u.nickname)
|> maybe_local_user_query(local)
paginated_query =
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment