# \#ordering

**URL:** https://discuss.dgraph.io/tag/ordering/229.md

[Latest](https://discuss.dgraph.io/latest.md) · [Categories](https://discuss.dgraph.io/categories.md) · [Tags](https://discuss.dgraph.io/tags.md)

---

## [Predicate multisorting problem](https://discuss.dgraph.io/t/predicate-multisorting-problem/19744)

<div class="topic-metadata">

**Author:** [@Bainazar](https://discuss.dgraph.io/u/Bainazar)\
**Replies:** 2\
**Last updated:** [January 22, 2025, 4:39pm UTC](https://discuss.dgraph.io/t/predicate-multisorting-problem/19744 "2025-01-22T16:39:39Z")

</div>

I want to order by predicates is\_default\_nickname asc and sub\_for\_count desc. is\_default\_nickname ordering is priority then sub\_for\_count. I run this big query: query qlink($uuid: string, $limit: int, $top\_100\_limit: i…

---

## [How to Order by Nested Data using GraphQL](https://discuss.dgraph.io/t/how-to-order-by-nested-data-using-graphql/11017)

<div class="topic-metadata">

**Author:** [@amaster507](https://discuss.dgraph.io/u/amaster507)\
**Replies:** 8\
**Last updated:** [December 27, 2021, 4:30pm UTC](https://discuss.dgraph.io/t/how-to-order-by-nested-data-using-graphql/11017 "2021-12-27T16:30:41Z")

</div>

We have discussed filtering on edges multiple times mot recently: http://dgraph.discourse.group/t/filter-on-non-scalar-fields-or-relations-types/10292/4, which is closely related to the topic of ordering on edges. Given sam…

---

## [Unable to perform sorting using Apollo server with Dgraph](https://discuss.dgraph.io/t/unable-to-perform-sorting-using-apollo-server-with-dgraph/14377)

<div class="topic-metadata">

**Author:** [@Yuvaraj\_Mageshkumar](https://discuss.dgraph.io/u/Yuvaraj_Mageshkumar)\
**Replies:** 10\
**Last updated:** [June 1, 2021, 3:50pm UTC](https://discuss.dgraph.io/t/unable-to-perform-sorting-using-apollo-server-with-dgraph/14377 "2021-06-01T15:50:15Z")

</div>

I’m trying to sort the date by timestamp, but I’m unable to perform the same using the resources given in the Dgraph docs. Used below schema type Post { id: ID! title: String! timestamp: String! usernam…

---

## [Order results by a pre-sorted list](https://discuss.dgraph.io/t/order-results-by-a-pre-sorted-list/14358)

<div class="topic-metadata">

**Author:** [@amaster507](https://discuss.dgraph.io/u/amaster507)\
**Replies:** 0\
**Last updated:** [May 28, 2021, 4:35pm UTC](https://discuss.dgraph.io/t/order-results-by-a-pre-sorted-list/14358 "2021-05-28T16:35:50Z")

</div>

Experience Report for Feature Request What you wanted to do Provide a pre-sorted list of ids (uids) and return results with pagination by order What you actually did Nothing, not possible Why that wasn’t great, with ex…

---

## [Does Lambda Query results preserve order?](https://discuss.dgraph.io/t/does-lambda-query-results-preserve-order/12057)

<div class="topic-metadata">

**Author:** [@amaster507](https://discuss.dgraph.io/u/amaster507)\
**Replies:** 1\
**Last updated:** [December 24, 2020, 8:57am UTC](https://discuss.dgraph.io/t/does-lambda-query-results-preserve-order/12057 "2020-12-24T08:57:12Z")

</div>

If I order my results in the lambda script before returning, will that order be preserved? I feel like they should be, but I want a hard confirmation before doing a lot of work down that road. Since I can’t order parent…
