# Is it possible to sort data table using header in Canvas (7.1.1)?

**URL:** https://discuss.elastic.co/t/is-it-possible-to-sort-data-table-using-header-in-canvas-7-1-1/186413
**Category:** Kibana
**Tags:** canvas
**Created:** [June 19, 2019, 8:42am UTC](https://discuss.elastic.co/t/is-it-possible-to-sort-data-table-using-header-in-canvas-7-1-1/186413 "2019-06-19T08:42:25Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![YuWatanabe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yuwatanabe/32/13259_2.png) [@YuWatanabe](https://discuss.elastic.co/u/YuWatanabe)
#### Post date: [June 19, 2019, 8:42am UTC](https://discuss.elastic.co/t/is-it-possible-to-sort-data-table-using-header-in-canvas-7-1-1/186413/1 "2019-06-19T08:42:26Z")

</div>

Hello.

I understand that you could sort fields in _Expression editor_ using [sort function](https://www.elastic.co/guide/en/kibana/current/canvas-common-functions.html#_sort)  
but I think it is bit less user friendly since you have to modify the expression everytime you change the sort field.

So, I thought it would be easier if sorting using header field is avaialbe , like in below site.

Sort Table by Clicking the Headers  
[https://www.w3schools.com/howto/howto\_js\_sort\_table.asp](https://www.w3schools.com/howto/howto_js_sort_table.asp)

However, looking through [the document](https://www.elastic.co/guide/en/kibana/current/canvas-common-functions.html#_table_2) sorting seems to be not supported in pure table function.

Is there any way to do sorting using header field ? Or is it already in line for feature request ?

---

<div class="post-metadata">

### Author: ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)
#### Post date: [June 19, 2019, 3:18pm UTC](https://discuss.elastic.co/t/is-it-possible-to-sort-data-table-using-header-in-canvas-7-1-1/186413/2 "2019-06-19T15:18:31Z")

</div>

It's not currently supported, but there's a feature request here you can follow: [https://github.com/elastic/kibana/issues/27925](https://github.com/elastic/kibana/issues/27925)

---

<div class="post-metadata">

### Author: ![YuWatanabe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yuwatanabe/32/13259_2.png) [@YuWatanabe](https://discuss.elastic.co/u/YuWatanabe)
#### Post date: [June 20, 2019, 1:29am UTC](https://discuss.elastic.co/t/is-it-possible-to-sort-data-table-using-header-in-canvas-7-1-1/186413/3 "2019-06-20T01:29:37Z")

</div>

@lukas Understood . Thank you for the update.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 18, 2019, 1:29am UTC](https://discuss.elastic.co/t/is-it-possible-to-sort-data-table-using-header-in-canvas-7-1-1/186413/4 "2019-07-18T01:29:39Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
