# Order table column headers

**URL:** <https://forum.inductiveautomation.com/t/order-table-column-headers/25383>\
**Category:** Ignition\
**Tags:** perspective, ignition80\
**Created:** [May 29, 2019, 2:46am UTC](https://forum.inductiveautomation.com/t/order-table-column-headers/25383 "2019-05-29T02:46:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![georgia.webber](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@georgia.webber](https://forum.inductiveautomation.com/u/georgia.webber)\
**Post date:** [May 29, 2019, 2:46am UTC](https://forum.inductiveautomation.com/t/order-table-column-headers/25383/1 "2019-05-29T02:46:50Z")

</div>

Is there any way to stop table headers in Perspective from sorting alphabetically?

The order I have in my ‘data’ for the table is Location, Name, Time, Status, Active. However, when I view it on the web browser the headers are rearranged:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/a/aac7f0a8415e0dff0270f22e48340121a5d84459.png)

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [May 29, 2019, 2:13pm UTC](https://forum.inductiveautomation.com/t/order-table-column-headers/25383/2 "2019-05-29T14:13:20Z")

</div>

It will sort by default. If you do NOT want the alpha sorting, you need to set the ordering yourself by explicitly declaring each column.

Please look at `Table.props.columns`. Click “Add Array Element”, as many times as you have columns you would like represented (essentially, you will need a `Table.props.columns` entry for EACH column you want displayed. For each column entry you’ve just created, set `Table.props.column[x].field` to the name of the data column you want this Table column to represent.

In your use-case, you should see something like:

```auto
Table.props.columns[0].field = "Location"
Table.props.columns[1].field = "Name"
Table.props.columns[2].field = "Time"
Table.props.columns[3].field = "Status"
Table.props.columns[4].field = "Active"

```

---

<div class="post-metadata">

**Author:** ![georgia.webber](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@georgia.webber](https://forum.inductiveautomation.com/u/georgia.webber)\
**Post date:** [May 29, 2019, 9:40pm UTC](https://forum.inductiveautomation.com/t/order-table-column-headers/25383/3 "2019-05-29T21:40:29Z")

</div>

That worked, thanks!

---

<div class="post-metadata">

**Author:** ![PAUL\_SIMMS](https://avatars.discourse-cdn.com/v4/letter/p/3ec8ea/32.png) [@PAUL\_SIMMS](https://forum.inductiveautomation.com/u/PAUL_SIMMS)\
**Post date:** [December 5, 2023, 4:24am UTC](https://forum.inductiveautomation.com/t/order-table-column-headers/25383/4 "2023-12-05T04:24:19Z")

</div>

I have been looking for this for a few days on Google. It finally popped on my search in Safari tonight. Thank you so much for posting this.
