# Sorting results with "Will" top

**URL:** <https://discuss.elastic.co/t/sorting-results-with-will-top/8901>\
**Category:** Elasticsearch\
**Created:** [August 30, 2012, 6:21pm UTC](https://discuss.elastic.co/t/sorting-results-with-will-top/8901 "2012-08-30T18:21:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![samCougars](https://avatars.discourse-cdn.com/v4/letter/s/71e660/32.png) [@samCougars](https://discuss.elastic.co/u/samCougars)\
**Post date:** [August 30, 2012, 6:21pm UTC](https://discuss.elastic.co/t/sorting-results-with-will-top/8901/1 "2012-08-30T18:21:51Z")

</div>

I'm using as follows for sorting:  
{  
"size" : 300,  
"query" : {  
"match\_all" : {  
}  
},  
"sort" : [ {  
"firstNameSort" : {  
"order" : "asc"  
}  
} ]  
}

But on my results, I see "Will" before "adfadf". Has anyone else seen the same issue? FYI, "firstNameSort" is just a string type which can ONLY have alpha numeric values....  
Please help....

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [August 30, 2012, 7:35pm UTC](https://discuss.elastic.co/t/sorting-results-with-will-top/8901/2 "2012-08-30T19:35:59Z")

</div>

Try to index "will" instead of "Will" to see if it changes something.

Le 30 août 2012 à 20:21, samCougars [sbaniya@gmail.com](mailto:sbaniya@gmail.com) a écrit :

> I'm using as follows for sorting:  
> {  
> "size" : 300,  
> "query" : {  
> "match\_all" : {  
> }  
> },  
> "sort" : [ {  
> "firstNameSort" : {  
> "order" : "asc"  
> }  
> } ]  
> }
> 
> But on my results, I see "Will" before "adfadf". Has anyone else seen the  
> same issue? FYI, "firstNameSort" is just a string type which can ONLY have  
> alpha numeric values....  
> Please help....
> 
> --  
> View this message in context:  
> [http://elasticsearch-users.115913.n3.nabble.com/sorting-results-with-Will-top-tp4022319.html](http://elasticsearch-users.115913.n3.nabble.com/sorting-results-with-Will-top-tp4022319.html)  
> Sent from the Elasticsearch Users mailing list archive at [Nabble.com](http://Nabble.com).
> 
> --

--  
David Pilato  
[http://www.scrutmydocs.org/](http://www.scrutmydocs.org/)  
[http://dev.david.pilato.fr/](http://dev.david.pilato.fr/)  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

--

---

<div class="post-metadata">

**Author:** ![samCougars](https://avatars.discourse-cdn.com/v4/letter/s/71e660/32.png) [@samCougars](https://discuss.elastic.co/u/samCougars)\
**Post date:** [August 30, 2012, 8:30pm UTC](https://discuss.elastic.co/t/sorting-results-with-will-top/8901/3 "2012-08-30T20:30:01Z")

</div>

When I index the fields, I change it to lowercase. So even with "will" I'm getting same issue. Can anyone try to put "will" on their and try to do sort as I have explained :

{  
"size" : 300,  
"query" : {  
"match\_all" : {  
}  
},  
"sort" : [ {  
"firstNameSort" : {  
"order" : "asc"  
}  
} ]  
}

---

<div class="post-metadata">

**Author:** ![phill](https://avatars.discourse-cdn.com/v4/letter/p/779978/32.png) [@phill](https://discuss.elastic.co/u/phill)\
**Post date:** [September 5, 2012, 3:56am UTC](https://discuss.elastic.co/t/sorting-results-with-will-top/8901/4 "2012-09-05T03:56:41Z")

</div>

On 8/30/2012 11:21 AM, samCougars wrote:

> But on my results, I see "Will" before "adfadf". Has anyone else seen the  
> same issue? FYI, "firstNameSort" is just a string type which can ONLY have  
> alpha numeric values....  
> Please help....

Will is an English stop word.  
-Paul

--

---

<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, 3:14am UTC](https://discuss.elastic.co/t/sorting-results-with-will-top/8901/5 "2017-07-06T03:14:06Z")

</div>


