# Sorting table in window

**URL:** <https://forum.inductiveautomation.com/t/sorting-table-in-window/22012>\
**Category:** Ignition\
**Created:** [January 21, 2019, 9:39am UTC](https://forum.inductiveautomation.com/t/sorting-table-in-window/22012 "2019-01-21T09:39:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jens1011](https://avatars.discourse-cdn.com/v4/letter/j/e274bd/32.png) [@jens1011](https://forum.inductiveautomation.com/u/jens1011)\
**Post date:** [January 21, 2019, 9:39am UTC](https://forum.inductiveautomation.com/t/sorting-table-in-window/22012/1 "2019-01-21T09:39:22Z")

</div>

I want to create a sort table in a normal window. With different parameters. but have no idea how to work with this. I have already watched a number of videos, but I still have no idea

---

<div class="post-metadata">

**Author:** ![Sanderd17](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sanderd17/32/8735_2.png) [@Sanderd17](https://forum.inductiveautomation.com/u/Sanderd17)\
**Post date:** [January 21, 2019, 10:01am UTC](https://forum.inductiveautomation.com/t/sorting-table-in-window/22012/2 "2019-01-21T10:01:17Z")

</div>

What do you mean with a “sort table”? You can sort any table by just clicking on the column names.

---

<div class="post-metadata">

**Author:** ![jens1011](https://avatars.discourse-cdn.com/v4/letter/j/e274bd/32.png) [@jens1011](https://forum.inductiveautomation.com/u/jens1011)\
**Post date:** [January 28, 2019, 7:09am UTC](https://forum.inductiveautomation.com/t/sorting-table-in-window/22012/3 "2019-01-28T07:09:04Z")

</div>

I have different parameters and the one with the lowest value must be at the top. these can change from minute to minute so it has to be done continuously

---

<div class="post-metadata">

**Author:** ![Sanderd17](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sanderd17/32/8735_2.png) [@Sanderd17](https://forum.inductiveautomation.com/u/Sanderd17)\
**Post date:** [January 28, 2019, 10:47am UTC](https://forum.inductiveautomation.com/t/sorting-table-in-window/22012/4 "2019-01-28T10:47:10Z")

</div>

> [@jens1011](#):
>
> so it has to be done continuously

Ok, now I get your problem. So I assume you get the data from somewhere, and now bind it to the `data` property of the table.

You can create a new custom property, (f.e. `unsortedData`), and link the data to that.  
Then use the `sortDataset` expression to sort your data and bind that to the `data` property to display.
