# GraphQL sortBy and multiple arguments

**URL:** <https://community.prismic.io/t/graphql-sortby-and-multiple-arguments/284>\
**Category:** Developing with Prismic\
**Tags:** graphql\
**Created:** [April 23, 2020, 1:58pm UTC](https://community.prismic.io/t/graphql-sortby-and-multiple-arguments/284 "2020-04-23T13:58:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yoann](https://avatars.discourse-cdn.com/v4/letter/y/5fc32e/32.png) [@yoann](https://community.prismic.io/u/yoann)\
**Post date:** [April 23, 2020, 1:58pm UTC](https://community.prismic.io/t/graphql-sortby-and-multiple-arguments/284/1 "2020-04-23T13:58:38Z")

</div>

Hi

I would like to use sortBy with multiples arguments ? Is it possible ?

The doc said : You can specify as many fields as you want to sort your documents. But no example ☹

Thanks

---

<div class="post-metadata">

**Author:** ![Levi](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/levi/32/24_2.png) [@Levi](https://community.prismic.io/u/Levi)\
**Post date:** [April 23, 2020, 4:00pm UTC](https://community.prismic.io/t/graphql-sortby-and-multiple-arguments/284/2 "2020-04-23T16:00:30Z")

</div>

Hi @yoann, thanks for reaching out about this. Sorry for the confusion. The documentation was incorrect about this and I just updated it.

Unfortunately it isn’t currently possible to have more than one sortBy arguments, sorry. This is something that might be improved in a future version of the GraphQL API, though. I’ll let the dev team know about this so they can consider it as part of their next round of changes for the API.

---

<div class="post-metadata">

**Author:** ![Levi](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/levi/32/24_2.png) [@Levi](https://community.prismic.io/u/Levi)\
**Post date:** [September 21, 2020, 8:47am UTC](https://community.prismic.io/t/graphql-sortby-and-multiple-arguments/284/5 "2020-09-21T08:47:49Z")

</div>

closed on September 21, 2020, 8:47am UTC, flag & select 'Something Else' to reopen.



---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [December 9, 2021, 5:42pm UTC](https://community.prismic.io/t/graphql-sortby-and-multiple-arguments/284/6 "2021-12-09T17:42:09Z")

</div>

Opened on December 9, 2021, 5:42pm UTC


