# How can I order the paragraph contents according to the order in which they were added

**URL:** <https://discuss.elastic.co/t/how-can-i-order-the-paragraph-contents-according-to-the-order-in-which-they-were-added/203161>\
**Category:** Elasticsearch\
**Created:** [October 11, 2019, 6:49am UTC](https://discuss.elastic.co/t/how-can-i-order-the-paragraph-contents-according-to-the-order-in-which-they-were-added/203161 "2019-10-11T06:49:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Reena\_Raghavan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/reena_raghavan/32/55094_2.png) [@Reena\_Raghavan](https://discuss.elastic.co/u/Reena_Raghavan)\
**Post date:** [October 11, 2019, 6:49am UTC](https://discuss.elastic.co/t/how-can-i-order-the-paragraph-contents-according-to-the-order-in-which-they-were-added/203161/1 "2019-10-11T06:49:58Z")

</div>

How can I order the paragraph contents according to the order in which they were added.  
 ![photo_2019-10-11_12-22-04](https://us1.discourse-cdn.com/elastic/original/3X/7/3/73b49d3ebfeb192458afc86002258bb89c5bc2a1.jpeg)  
In the image the result which i get is not ordered.  
I need the paragraph content to be in order in which they were added.

Technology used to add the content is **Drupal**  
Used Elastic Search Connector for mapping.  
Tool used for querying is **Kibana**.  
Below is the query  
GET elasticsearch\_index\_thunder/\_search?pretty=1  
{  
"sort": [  
{ "field\_content\_created\_on": { "order": "desc" }},  
{ "\_score": { "order": "desc" }}  
],  
"query": {  
"match" : {  
"field\_nid": "116"  
}  
}  
}

About the content  
There is a field Paragraph in which contents like text, image video etc cab be added as multiple sub fields.  
Attached is the sample add content page

 ![photo_2019-10-11_12-50-43](https://us1.discourse-cdn.com/elastic/original/3X/8/7/8726adc35a7269d012b633c964c91ccc817f7449.jpeg) ![photo_2019-10-11_12-50-36](https://us1.discourse-cdn.com/elastic/original/3X/6/4/640f8d80e0434dfa03dc5686388295c1a0b78f41.jpeg)

---

<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:** [November 8, 2019, 7:03am UTC](https://discuss.elastic.co/t/how-can-i-order-the-paragraph-contents-according-to-the-order-in-which-they-were-added/203161/2 "2019-11-08T07:03:23Z")

</div>

Closed on November 8, 2019, 7:03am UTC

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