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:
| Priority | Sort key | Description |
|---|---|---|
| 1 | Display on top (regular_flg) | Content with "Display on top" enabled is shown first. |
| 2 | Date (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. |
| 3 | Post 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. |
| 4 | Last updated (update_ymdhi) | Sorts by the content's last updated date and time. |
| 5 | Content 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.
Related documents
Support
If you have any other questions, please contact us or check out Our Slack Community.