# Support order by combination of val() and predicate

**URL:** <https://discuss.dgraph.io/t/support-order-by-combination-of-val-and-predicate/19530>\
**Category:** Dgraph\
**Tags:** kind:enhancement\
**Created:** [August 27, 2024, 1:28am UTC](https://discuss.dgraph.io/t/support-order-by-combination-of-val-and-predicate/19530 "2024-08-27T01:28:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![markushedlund](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/markushedlund/32/10286_2.png) [@markushedlund](https://discuss.dgraph.io/u/markushedlund)\
**Post date:** [August 27, 2024, 1:28am UTC](https://discuss.dgraph.io/t/support-order-by-combination-of-val-and-predicate/19530/1 "2024-08-27T01:28:35Z")

</div>

Enhancement request for supporting order by a combination of val() and predicate.

```auto
orderdesc: val(SECTIONS_COUNT), orderasc: name

```

Please see [Second order isn't applied](https://discuss.hypermode.com/t/second-order-isnt-applied/19521) and [Why second order not work?](https://discuss.hypermode.com/t/why-second-order-not-work/10376).
