# Sort by a child value

**URL:** <https://discuss.elastic.co/t/sort-by-a-child-value/4477>\
**Category:** Elasticsearch\
**Created:** [May 25, 2011, 11:38pm UTC](https://discuss.elastic.co/t/sort-by-a-child-value/4477 "2011-05-25T23:38:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alsab](https://avatars.discourse-cdn.com/v4/letter/a/b5a626/32.png) [@alsab](https://discuss.elastic.co/u/alsab)\
**Post date:** [May 25, 2011, 11:38pm UTC](https://discuss.elastic.co/t/sort-by-a-child-value/4477/1 "2011-05-25T23:38:39Z")

</div>

Hello,

I'm starting with elasticsearch, and I'm really interesting by parent/  
child.  
In my childs, I have 2 fields, date and price.  
I would like to know when I query with has\_child, if it will possible  
to order by date or price.

Thanks

---

<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, 4:05am UTC](https://discuss.elastic.co/t/sort-by-a-child-value/4477/2 "2017-07-06T04:05:20Z")

</div>


