AdminAPI: sort user results by ID descending
This commit is contained in:
parent
b221d77a6d
commit
5e88796784
3 changed files with 58 additions and 71 deletions
|
|
@ -23,7 +23,7 @@ defmodule Pleroma.Web.AdminAPI.Search do
|
|||
|> Map.drop([:page, :page_size])
|
||||
|> Map.put(:invisible, false)
|
||||
|> User.Query.build()
|
||||
|> order_by([u], u.nickname)
|
||||
|> order_by(desc: :id)
|
||||
|
||||
paginated_query =
|
||||
User.Query.paginate(query, params[:page] || 1, params[:page_size] || @page_size)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue