# Sort task/processes by process/task variables

**URL:** <https://forum.flowable.org/t/sort-task-processes-by-process-task-variables/1264>\
**Category:** Flowable Engine\
**Created:** [November 28, 2017, 12:41pm UTC](https://forum.flowable.org/t/sort-task-processes-by-process-task-variables/1264 "2017-11-28T12:41:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jespriu](https://avatars.discourse-cdn.com/v4/letter/j/dfb087/32.png) [@jespriu](https://forum.flowable.org/u/jespriu)\
**Post date:** [November 28, 2017, 12:41pm UTC](https://forum.flowable.org/t/sort-task-processes-by-process-task-variables/1264/1 "2017-11-28T12:41:08Z")

</div>

Hi all,  
Do you know any way to do queries (via Java API and/or API Rest) using an order based on a task/process variable? Ideally without using native queries.

Best regards.

---

<div class="post-metadata">

**Author:** ![tijs](https://avatars.discourse-cdn.com/v4/letter/t/bc79bd/32.png) [@tijs](https://forum.flowable.org/u/tijs)\
**Post date:** [November 29, 2017, 3:32pm UTC](https://forum.flowable.org/t/sort-task-processes-by-process-task-variables/1264/2 "2017-11-29T15:32:41Z")

</div>

Hi,

No, that’s currently not possible. And yes the option would be to use native queries 🙂

Best regards,

Tijs
