# Timestamp sort ends up reversed

**URL:** https://discuss.elastic.co/t/timestamp-sort-ends-up-reversed/69825
**Category:** Kibana
**Created:** [December 22, 2016, 5:11pm UTC](https://discuss.elastic.co/t/timestamp-sort-ends-up-reversed/69825 "2016-12-22T17:11:53Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![sancroth](https://avatars.discourse-cdn.com/v4/letter/s/838e76/32.png) [@sancroth](https://discuss.elastic.co/u/sancroth)
#### Post date: [December 22, 2016, 5:11pm UTC](https://discuss.elastic.co/t/timestamp-sort-ends-up-reversed/69825/1 "2016-12-22T17:11:53Z")

</div>

As the title says.

Making Data tables with aggregation based on Date histogram-\>Timestamp ends up in reversed order.

Why is this happening?Anyone met this before?

edit : I think that because it is not used as an Axis input but printed information it results as a [String.So](http://String.So)..If thats the [case.Is](http://case.Is) there a way to "lock" the sort/descend choice?Because it gets reseted every time it refreshes.

---

<div class="post-metadata">

### Author: ![spalger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spalger/32/14092_2.png) [@spalger](https://discuss.elastic.co/u/spalger)
#### Post date: [December 22, 2016, 5:28pm UTC](https://discuss.elastic.co/t/timestamp-sort-ends-up-reversed/69825/2 "2016-12-22T17:28:44Z")

</div>

Can you share a screenshot of visualize to help illustrate the configuration you're using and help me understand what's wrong?

---

<div class="post-metadata">

### Author: ![sancroth](https://avatars.discourse-cdn.com/v4/letter/s/838e76/32.png) [@sancroth](https://discuss.elastic.co/u/sancroth)
#### Post date: [December 22, 2016, 5:35pm UTC](https://discuss.elastic.co/t/timestamp-sort-ends-up-reversed/69825/3 "2016-12-22T17:35:18Z")

</div>

![](https://us1.discourse-cdn.com/elastic/original/2X/2/20fd1d862690b5f92bb67aba873ad28a63cf2355.png)

Just a random example of any data table that i want to show the timestamp.  
What i basically need it for it to be always reversed and not sorted by ascending.  
Is it just my logics fault?If not can it be "locked" to reverse order by some way?

If you click on timestamps column "^" button twice it gets set to reverse.But still it goes back to the default every time-interval refresh

---

<div class="post-metadata">

### Author: ![spalger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spalger/32/14092_2.png) [@spalger](https://discuss.elastic.co/u/spalger)
#### Post date: [December 22, 2016, 5:40pm UTC](https://discuss.elastic.co/t/timestamp-sort-ends-up-reversed/69825/4 "2016-12-22T17:40:41Z")

</div>

If you sort the table by clicking the column name, then save the visualization, it should save the sorting of that column. If that's not working then there is a bug. The feature was added in [https://github.com/elastic/kibana/pull/5953](https://github.com/elastic/kibana/pull/5953). If you verify the bug please file an issue at the github repo.

---

<div class="post-metadata">

### Author: ![sancroth](https://avatars.discourse-cdn.com/v4/letter/s/838e76/32.png) [@sancroth](https://discuss.elastic.co/u/sancroth)
#### Post date: [December 22, 2016, 5:41pm UTC](https://discuss.elastic.co/t/timestamp-sort-ends-up-reversed/69825/5 "2016-12-22T17:41:39Z")

</div>

Edited to add this comment before.Reposting in case you missed it :  
If you click on timestamps column "^" button twice it gets set to reverse.But still it goes back to the default every time-interval refresh

---

<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: [January 19, 2017, 5:42pm UTC](https://discuss.elastic.co/t/timestamp-sort-ends-up-reversed/69825/6 "2017-01-19T17:42:13Z")

</div>

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