# Second filter of sorting in a table

**URL:** <https://discuss.elastic.co/t/second-filter-of-sorting-in-a-table/135757>\
**Category:** Kibana\
**Created:** [June 13, 2018, 3:16pm UTC](https://discuss.elastic.co/t/second-filter-of-sorting-in-a-table/135757 "2018-06-13T15:16:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![javidr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/javidr/32/136982_2.png) [@javidr](https://discuss.elastic.co/u/javidr)\
**Post date:** [June 13, 2018, 3:16pm UTC](https://discuss.elastic.co/t/second-filter-of-sorting-in-a-table/135757/1 "2018-06-13T15:16:26Z")

</div>

Hi

I am trying to build a table, and sort it based on a condition (number of occurrences of the element)

It works fine, but, i have some elements that have the same number of occurences. For those, i want to sort tem based on the date it was added

If i try to do a vertical bar visualisation, i can create a sub-bucket to to this level of sorting, but i cant see any option like that in tables. Is there any option to do it?

Thanks

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [June 13, 2018, 6:23pm UTC](https://discuss.elastic.co/t/second-filter-of-sorting-in-a-table/135757/2 "2018-06-13T18:23:51Z")

</div>

Hey @javidr, if I understand correctly you're building a Data Table visualization, and you're hoping to specify two columns to sort by, with the first one taking precedence and the second one being used when the first one is the same value. Unfortunately, there isn't a way to do this currently with a data table.

Unfortunately, I'm not following what you're referring to with regard to the vertical bar visualization.

---

<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 11, 2018, 6:23pm UTC](https://discuss.elastic.co/t/second-filter-of-sorting-in-a-table/135757/3 "2018-07-11T18:23:51Z")

</div>

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