# graphQL query "orderBy" doesn't work as expected

**URL:** <https://community.fibery.io/t/graphql-query-orderby-doesnt-work-as-expected/5348>\
**Category:** Bugs & Issues\
**Created:** [October 31, 2023, 8:36pm UTC](https://community.fibery.io/t/graphql-query-orderby-doesnt-work-as-expected/5348 "2023-10-31T20:36:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matt\_Blais](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/matt_blais/32/1464_2.png) [@Matt\_Blais](https://community.fibery.io/u/Matt_Blais)\
**Post date:** [October 31, 2023, 8:36pm UTC](https://community.fibery.io/t/graphql-query-orderby-doesnt-work-as-expected/5348/1 "2023-10-31T20:36:33Z")

</div>

Am I misunderstanding how orderBy works in a graphQL query? Because these results are not sorted the way I expect:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/e/eb4462b30327a5688a005cca90f160d3fe0eaf48.png)

It works correctly when sorting on a single field, but not when multiple fields are specified in orderBy.
