# Give the documents a specific order to deploy

**URL:** <https://community.prismic.io/t/give-the-documents-a-specific-order-to-deploy/6139>\
**Category:** Developing with Prismic\
**Tags:** rest-api\
**Created:** [July 7, 2021, 10:58pm UTC](https://community.prismic.io/t/give-the-documents-a-specific-order-to-deploy/6139 "2021-07-07T22:58:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![alejo1997serna](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/alejo1997serna/32/2534_2.png) [@alejo1997serna](https://community.prismic.io/u/alejo1997serna)\
**Post date:** [July 7, 2021, 10:58pm UTC](https://community.prismic.io/t/give-the-documents-a-specific-order-to-deploy/6139/1 "2021-07-07T22:58:32Z")

</div>

I am using the Rest API to get content for my project. I have few different Custom types, some of them are repeatable but I'm having trouble sorting them because when I update a document the list changes its order and I want it to be fixed.  
Can somebody help me to achieve this? Thanks.

---

<div class="post-metadata">

**Author:** ![Priyanka](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/priyanka/32/3223_2.png) [@Priyanka](https://community.prismic.io/u/Priyanka)\
**Post date:** [July 8, 2021, 12:40pm UTC](https://community.prismic.io/t/give-the-documents-a-specific-order-to-deploy/6139/3 "2021-07-08T12:40:40Z")

</div>

Hello @alejo1997serna

Welcome to the Prismic community.

You can use the "orderings" parameters to sort your query results in a particular order. The orderings parameter orders the results by the specified field(s). You can specify as many fields as you want. You can order documents by their first or last publication dates.  
Find more details in this document: [Order your results in the REST API - Prismic](https://prismic.io/docs/technologies/order-your-results-rest-api).

Let me know if it still doesn't solve your question.

Thanks,  
Priyanka

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [July 9, 2021, 12:41pm UTC](https://community.prismic.io/t/give-the-documents-a-specific-order-to-deploy/6139/4 "2021-07-09T12:41:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [December 9, 2021, 3:36pm UTC](https://community.prismic.io/t/give-the-documents-a-specific-order-to-deploy/6139/5 "2021-12-09T15:36:58Z")

</div>


