# Help to sort by a column the data entered in node ui\_tablet

**URL:** <https://discourse.nodered.org/t/help-to-sort-by-a-column-the-data-entered-in-node-ui-tablet/54711>\
**Category:** General\
**Created:** [4 December 2021 15:09 UTC](https://discourse.nodered.org/t/help-to-sort-by-a-column-the-data-entered-in-node-ui-tablet/54711 "2021-12-04T15:09:22Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Christian-Me](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/christian-me/32/10774_2.png) [@Christian-Me](https://discourse.nodered.org/u/Christian-Me)\
**Post date:** [5 December 2021 12:30 UTC](https://discourse.nodered.org/t/help-to-sort-by-a-column-the-data-entered-in-node-ui-tablet/54711/2 "2021-12-05T12:30:37Z")

</div>

Hi,

`AddRow` adds rows to the end **or** at the top

> The second argument is optional and determines whether the row is added to the **top** or bottom of the table. A value of `true` will add the row to the **top** of the table, a value of `false` will add the row to the **bottom** of the table.

[as described here](http://tabulator.info/docs/5.0/update#row) You send `false` so new lines are added to the bottom resulting in the table sorted ascending.

you can trigger the sort by [`setSort()`](http://tabulator.info/docs/5.0/sort#manage)

and by using the [arrow keys on the header](http://tabulator.info/docs/5.0/sort#header). (if you use these it is perhaps good to know that you can receive the current sorting by `getSorters()` and then add your new lines at the top or at the end depending which state is set. _Maybe this can be tricky if you have multiple clients showing the data because they might be not in sync,_

How to scroll to the new line I think I already answered here [Problem with data displayed in UI-Table when switching Tabs - #7 by Christian-Me](https://discourse.nodered.org/t/problem-with-data-displayed-in-ui-table-when-switching-tabs/48940/7)

---

_[View the full topic](https://discourse.nodered.org/t/help-to-sort-by-a-column-the-data-entered-in-node-ui-tablet/54711)._
