mirror of
https://github.com/mirego/accent.git
synced 2024-09-11 18:58:14 +03:00
Add deterministic documents ordering on project
This commit is contained in:
parent
a9bca5f411
commit
4aef46ac30
@ -63,7 +63,7 @@ defmodule Accent.GraphQL.Resolvers.Document do
|
||||
Document
|
||||
|> DocumentScope.from_project(project.id)
|
||||
|> DocumentScope.with_stats(exclude_empty_translations: args.exclude_empty_translations)
|
||||
|> Ecto.Query.order_by(desc: :updated_at)
|
||||
|> Ecto.Query.order_by(asc: :path)
|
||||
|> Paginated.paginate(args)
|
||||
|> Paginated.format()
|
||||
|> then(&{:ok, &1})
|
||||
|
Loading…
Reference in New Issue
Block a user