# Sort not working in the Data Explorer

**URL:** <https://community.dynatrace.com/t/sort-not-working-in-the-data-explorer/34024>\
**Category:** Dashboarding\
**Tags:** dynatrace-managed, data-explorer, dashboards-classic\
**Created:** [February 4, 2022, 4:37pm UTC](https://community.dynatrace.com/t/sort-not-working-in-the-data-explorer/34024 "2022-02-04T16:37:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mhlamine](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mhlamine/32/4415_2.png) [@mhlamine](https://community.dynatrace.com/u/mhlamine)\
**Post date:** [February 4, 2022, 4:37pm UTC](https://community.dynatrace.com/t/sort-not-working-in-the-data-explorer/34024/1 "2022-02-04T16:37:44Z")

</div>

Hi,

I am trying to add a Data Explorer tile in dashboard but results are not well sorted.

Here is the metric query code:

_builtin:synthetic.browser.availability.location.total:splitBy(“dt.entity.synthetic\_test”):auto:sort(value(auto,ascending),dimension(“dt.entity.synthetic\_test”,ascending)):limit(100):partition(“Status”,value(“ok”,ge(100)),value(“nok”,lt(100))):filter(ne(“Status”,“ok”))_

 ![SortSyntheticRate.JPG](https://global.discourse-cdn.com/dynatrace/original/3X/b/a/ba0c37fb64a4107d913cc73fdcc3cf9dac5a7f7f.jpeg)

---

<div class="post-metadata">

**Author:** ![mgome](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@mgome](https://community.dynatrace.com/u/mgome)\
**Post date:** [February 4, 2022, 6:17pm UTC](https://community.dynatrace.com/t/sort-not-working-in-the-data-explorer/34024/2 "2022-02-04T18:17:11Z")

</div>

Have you tried moving your sort to the end of your code?

builtin:synthetic.browser.availability.location.total:splitBy(“dt.entity.synthetic\_test”):auto:limit(100):partition(“Status”,value(“ok”,ge(100)),value(“nok”,lt(100))):filter(ne(“Status”,“ok”)):sort(value(auto,ascending),dimension(“dt.entity.synthetic\_test”,ascending))

---

<div class="post-metadata">

**Author:** ![mhlamine](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mhlamine/32/4415_2.png) [@mhlamine](https://community.dynatrace.com/u/mhlamine)\
**Post date:** [February 7, 2022, 12:19am UTC](https://community.dynatrace.com/t/sort-not-working-in-the-data-explorer/34024/3 "2022-02-07T00:19:45Z")

</div>

Thanks it’s working if you move the sort to the end of the code, but it is not specified in the documentation. I think it’s a bug and should be fixed.
