# Sorting issues in NEST

**URL:** <https://discuss.elastic.co/t/sorting-issues-in-nest/60332>\
**Category:** Elasticsearch\
**Created:** [September 12, 2016, 9:26pm UTC](https://discuss.elastic.co/t/sorting-issues-in-nest/60332 "2016-09-12T21:26:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deezy](https://avatars.discourse-cdn.com/v4/letter/d/da6949/32.png) [@Deezy](https://discuss.elastic.co/u/Deezy)\
**Post date:** [September 12, 2016, 9:26pm UTC](https://discuss.elastic.co/t/sorting-issues-in-nest/60332/1 "2016-09-12T21:26:51Z")

</div>

When using .Order(TermsOrder.TermAscending) in nest the result on the front end display 80% correctly. Space takes precedence over a dash and also uppercase takes precedence over lowercase values even though it isn't alphabethically correct. Can anyone explain why does this happen?

---

<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 5, 2017, 10:20pm UTC](https://discuss.elastic.co/t/sorting-issues-in-nest/60332/2 "2017-07-05T22:20:56Z")

</div>

Closed on July 5, 2017, 10:20pm UTC


