# Unable to get data in a sorted format (by bin)

**URL:** <https://discuss.aerospike.com/t/unable-to-get-data-in-a-sorted-format-by-bin/8446>\
**Category:** Client Libraries\
**Created:** [May 7, 2021, 5:58pm UTC](https://discuss.aerospike.com/t/unable-to-get-data-in-a-sorted-format-by-bin/8446 "2021-05-07T17:58:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ananya10588](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@ananya10588](https://discuss.aerospike.com/u/ananya10588)\
**Post date:** [May 7, 2021, 5:58pm UTC](https://discuss.aerospike.com/t/unable-to-get-data-in-a-sorted-format-by-bin/8446/1 "2021-05-07T17:58:11Z")

</div>

Trying to query data and making sure data comes back in a certain order. Is there an equivalent of ORDER BY in aerospike client?

Thanks for the help

---

<div class="post-metadata">

**Author:** ![neelp](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/neelp/32/1369_2.png) [@neelp](https://discuss.aerospike.com/u/neelp)\
**Post date:** [May 7, 2021, 6:27pm UTC](https://discuss.aerospike.com/t/unable-to-get-data-in-a-sorted-format-by-bin/8446/2 "2021-05-07T18:27:30Z")

</div>

There is no sort or ORDER BY supported in Aerospike client. The client collects partial, unordered results from the cluster nodes. If the application wants the results in a specific order, it needs to perform the sort using appropriate language utilities.

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/system/32/2274_2.png) [@system](https://discuss.aerospike.com/u/system)\
**Post date:** [May 7, 2022, 6:28pm UTC](https://discuss.aerospike.com/t/unable-to-get-data-in-a-sorted-format-by-bin/8446/3 "2022-05-07T18:28:18Z")

</div>

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
