Skip to main content

What is the default sort order for the content list?

When order_query is not specified in the content list API, items are sorted in descending order by the following priority:

PrioritySort keyDescription
1Display on top (regular_flg)Content with "Display on top" enabled is shown first.
2Date (ymd) or Sort number (order_no)Uses date when "Use date" is selected in the content structure editor, or sort number when "Use sort number" is selected.
3Post time (post_time)Only applies when "Also include time (hh:mm)" is enabled in the content structure. The post time is used as a tiebreaker after the date.
4Last updated (update_ymdhi)Sorts by the content's last updated date and time.
5Content ID (topics_id)Used as a final tiebreaker when all of the above are equal.
info

When order_query is specified, the default sort order above is overridden entirely by the specified conditions.
See Can I freely modify the order of the content list? for details on how to specify order_query.


Support

If you have any other questions, please contact us or check out Our Slack Community.