Order by date Delivery API


I’m using Contentful on a Node environment, and I can’t find how I can order my entries to display them by a date who is in the model.

How can I do it ?

My actual query to get the entries :

    'content_type': 'expriences'

Thanks in advance !

Hi @kefuret,

Is this field a metadata date field, or an additional date in your content model?

If the former, you could simply use a query parameter on the lines of order:'sys.createdAt'.

If the latter, you could use a query parameter on the lines of order:'fields.Datefield', making sure you also specify the content type in your query.

You can find more information in this section of our documentation.

Let me know if this helps or if you have any other questions.