# Sorting in Discover not working

**URL:** <https://discuss.elastic.co/t/sorting-in-discover-not-working/204626>\
**Category:** Kibana\
**Created:** [October 22, 2019, 10:34am UTC](https://discuss.elastic.co/t/sorting-in-discover-not-working/204626 "2019-10-22T10:34:17Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Bargs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bargs/32/5429_2.png) [@Bargs](https://discuss.elastic.co/u/Bargs)\
**Post date:** [October 24, 2019, 2:54am UTC](https://discuss.elastic.co/t/sorting-in-discover-not-working/204626/5 "2019-10-24T02:54:24Z")

</div>

> [@Ssingh12](#):
>
> I am also using scripted fields because I need pretty names for my fields

If you only need nice display names, have you tried using a [field formatter](https://www.elastic.co/guide/en/kibana/7.4/field-formatters-string.html)? These can be more lightweight performance-wise because the formatting is done in the browser rather than in Elasticsearch. Search will be more performant if done against regular fields vs a script.

If a field formatter won't do the job for you, could you open up your browser's dev tools and see if there's an error when filtering on the scripted field? Filter on scripted fields should work, so there must be something funny going on.

---

_[View the full topic](https://discuss.elastic.co/t/sorting-in-discover-not-working/204626)._
