# Order Tag History by Timestamp Ascending or Descending

**URL:** <https://forum.inductiveautomation.com/t/order-tag-history-by-timestamp-ascending-or-descending/3515>\
**Category:** Ignition\
**Created:** [October 28, 2011, 11:43am UTC](https://forum.inductiveautomation.com/t/order-tag-history-by-timestamp-ascending-or-descending/3515 "2011-10-28T11:43:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Duffanator](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/duffanator/32/3560_2.png) [@Duffanator](https://forum.inductiveautomation.com/u/Duffanator)\
**Post date:** [October 28, 2011, 11:43am UTC](https://forum.inductiveautomation.com/t/order-tag-history-by-timestamp-ascending-or-descending/3515/1 "2011-10-28T11:43:23Z")

</div>

Would it be possible to add a “Order By” option to the tag history binding? I like to populate tables with tag history data but I usually want to see the latest entry first. I would be fine with just a Ascending or Descending check box or something like that.

---

<div class="post-metadata">

**Author:** ![Colby.Clegg](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/colby.clegg/32/3282_2.png) [@Colby.Clegg](https://forum.inductiveautomation.com/u/Colby.Clegg)\
**Post date:** [October 28, 2011, 4:01pm UTC](https://forum.inductiveautomation.com/t/order-tag-history-by-timestamp-ascending-or-descending/3515/2 "2011-10-28T16:01:25Z")

</div>

Yes, this definitely seems like something that should be there. We think there are probably a number of things we could do to make querying more flexible, but starting off with this should be easy enough.

I guess for now you could probably rig up a script that runs the query and reverses the dataset, and run the query through that by binding the table dataset to an expression using “runScript”.

Regards,

---

<div class="post-metadata">

**Author:** ![jakned](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@jakned](https://forum.inductiveautomation.com/u/jakned)\
**Post date:** [November 3, 2020, 10:23am UTC](https://forum.inductiveautomation.com/t/order-tag-history-by-timestamp-ascending-or-descending/3515/3 "2020-11-03T10:23:55Z")

</div>

Is there anything new on this topic?

---

<div class="post-metadata">

**Author:** ![dion.botha](https://avatars.discourse-cdn.com/v4/letter/d/46a35a/32.png) [@dion.botha](https://forum.inductiveautomation.com/u/dion.botha)\
**Post date:** [June 1, 2022, 5:37pm UTC](https://forum.inductiveautomation.com/t/order-tag-history-by-timestamp-ascending-or-descending/3515/4 "2022-06-01T17:37:15Z")

</div>

I would like this too so I submitted the idea to Ignition - up vote if you would like to see this too!

[https://inductiveautomation.canny.io/ignition-features-and-ideas/p/tag-history-binding-on-table-advanced-querying](https://inductiveautomation.canny.io/ignition-features-and-ideas/p/tag-history-binding-on-table-advanced-querying)
