# Sorting move empty string to bottom

**URL:** <https://discuss.elastic.co/t/sorting-move-empty-string-to-bottom/101418>\
**Category:** Elasticsearch\
**Created:** [September 22, 2017, 5:49am UTC](https://discuss.elastic.co/t/sorting-move-empty-string-to-bottom/101418 "2017-09-22T05:49:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaviyarasanaspire](https://avatars.discourse-cdn.com/v4/letter/k/9e8a1a/32.png) [@kaviyarasanaspire](https://discuss.elastic.co/u/kaviyarasanaspire)\
**Post date:** [September 22, 2017, 5:49am UTC](https://discuss.elastic.co/t/sorting-move-empty-string-to-bottom/101418/1 "2017-09-22T05:49:28Z")

</div>

Hi,

We are using ElasticSearch(Nest) 1.5.2 in our project. In that we have a requirement to sort the records based on the column and move the empty string to the bottom.

I tried but could not come up with a proper solution.

Thanks for your help!

---

<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:** [October 20, 2017, 5:49am UTC](https://discuss.elastic.co/t/sorting-move-empty-string-to-bottom/101418/2 "2017-10-20T05:49:35Z")

</div>

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