# How to sort line chart in Descending order

**URL:** https://discuss.elastic.co/t/how-to-sort-line-chart-in-descending-order/32323
**Category:** Kibana
**Created:** [October 16, 2015, 2:27am UTC](https://discuss.elastic.co/t/how-to-sort-line-chart-in-descending-order/32323 "2015-10-16T02:27:36Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![vikas\_gopal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikas_gopal/32/47661_2.png) [@vikas\_gopal](https://discuss.elastic.co/u/vikas_gopal)
#### Post date: [October 16, 2015, 2:27am UTC](https://discuss.elastic.co/t/how-to-sort-line-chart-in-descending-order/32323/1 "2015-10-16T02:27:36Z")

</div>

Hi Experts,

 ![](https://us1.discourse-cdn.com/elastic/original/2X/f/f65f2a260f4b503b42061ef9cb70c1122dd1b822.png)  
My requirement is to sort above line chart in Descending order. So , my legend should be like  
9  
7  
6  
.....

Please advice , as I tried `{ "order" : { "_term" : "asc" } }` OR `{ "order" : { "_term" : "desc" } }` in the JSON input but it did not work for me .

Thanks  
VG

---

<div class="post-metadata">

### Author: ![eperry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eperry/32/551_2.png) [@eperry](https://discuss.elastic.co/u/eperry)
#### Post date: [October 16, 2015, 3:59pm UTC](https://discuss.elastic.co/t/how-to-sort-line-chart-in-descending-order/32323/2 "2015-10-16T15:59:53Z")

</div>

I don't see anything easy for you to do that, Maybe someone will give you a better solution.

However, I have played with the raw Visualized object under WEBUI -\> Settings -\> Objects -\> ( Visualizations or Search ) and edit the actual search directly.

WARNING - make sure you make a backup of your object or export it. I have broken them many times and had to recreate the search/visualization a couple times till I got it working

---

<div class="post-metadata">

### Author: ![vikas\_gopal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikas_gopal/32/47661_2.png) [@vikas\_gopal](https://discuss.elastic.co/u/vikas_gopal)
#### Post date: [October 19, 2015, 6:41am UTC](https://discuss.elastic.co/t/how-to-sort-line-chart-in-descending-order/32323/3 "2015-10-19T06:41:40Z")

</div>

Thank you Eperry but It did not work for me .I tried almost everything , I mean even by editing search directly either I end up with an error or unexpected result .  
Can someone suggest another solution for my problem ?

---

<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 6, 2017, 2:11pm UTC](https://discuss.elastic.co/t/how-to-sort-line-chart-in-descending-order/32323/4 "2017-07-06T14:11:04Z")

</div>


