Skip to content
English - United States
  • There are no suggestions because the search field is empty.

How to sort the items in a collection by publication date

Why sort items by date?

Key features • Sorting by date displays the most recent content first • Ideal for hotel news, offers, or events • Simple setup in the Collection List is all it takes

Sorting a CMS collection by publication date is one of the best ways to automatically organize your dynamic content, especially if you manage a hotel blog, an events calendar, seasonal offers, or news. Chronological sorting creates smooth, logical, and intuitive navigation for your visitors.

To begin, verify that your CMS collection contains a Date field. This could be a dedicated field such as “Publication Date,” “Start Date,” “Event Date,” or any other time-based field appropriate for your hotel's content. If your collection doesn't yet have this field, add it to ensure consistent sorting.

Next, go to the page that displays the list of items in your collection. This list is usually built using a Collection List, which automatically retrieves items related to the collection. Select this block and open the settings for the Collection List Wrapper.

In your Collection List settings, find the Sort Order section. Activate a new sort criterion, select your date field, and then choose the desired order. To display the newest content first, select "Descending". To display the oldest content first, select "Ascending".

💡 Tip: If you use your collection for hotel offers or events, combine sorting by date with a filter to display only future content. This prevents expired offers from being shown.

After configuring the sorting, preview the page to verify that the items are displayed in the expected order. If the sorting is not working as expected, ensure that all values ​​in the date field are correctly entered. A missing or incorrectly formatted date can prevent an item from being correctly sorted.

To boost your hotel SEO, consider harmonizing publication dates and structuring your content around an editorial calendar. A well-organized content flow helps search engines understand your site and improves your visibility.

Conclusion

Sorting items in a CMS collection by date is simple, quick, and essential for maintaining a clear and professional hotel website. By configuring the sorting criteria in your Collection List and verifying your date fields, you ensure a smooth and logical display of your content.