# Uppercase letters on sort by text field

**URL:** <https://discuss.elastic.co/t/uppercase-letters-on-sort-by-text-field/162285>\
**Category:** Elasticsearch\
**Created:** [December 27, 2018, 9:25pm UTC](https://discuss.elastic.co/t/uppercase-letters-on-sort-by-text-field/162285 "2018-12-27T21:25:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![guilherme\_maranhao](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guilherme_maranhao/32/101483_2.png) [@guilherme\_maranhao](https://discuss.elastic.co/u/guilherme_maranhao)\
**Post date:** [December 27, 2018, 9:25pm UTC](https://discuss.elastic.co/t/uppercase-letters-on-sort-by-text-field/162285/1 "2018-12-27T21:25:18Z")

</div>

Hi there,

I'm trying to sort a search by a text field. On some documents, all the letters on the field are uppercase, while in others, only the first letter is uppercase.

I'm sorting it by the text\_field.keyword field, in ASC order.

The problem is that ES is prioritizing the documents which field contains only uppercase letters.

Is there a specific setting that I need to use to ignore that?

Thanks!

Guilherme

---

<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 24, 2019, 9:25pm UTC](https://discuss.elastic.co/t/uppercase-letters-on-sort-by-text-field/162285/2 "2019-01-24T21:25:24Z")

</div>

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