In this page

    Content modelling > Record ordering

    Record ordering

    The record collections can be ordered in different ways:

    • By the records that were last updated first (default ordering)

    • By one specified field, in ascending or descending order

    • In a tree-like structure

    • By drag and drop reordering

    The default ordering should be quite self-explanatory.

    The same goes for ordering by specified field. You can select the field and the ordering direction in the model settings:

    The tree-like structure has its own documentation page where you can see it in action.

    Last but not least, we have drag and drop reordering. In this case, once you select the appropriate choice from the usual dropdown, you will have the option of dragging and dropping the records in the collection list.

    In case you need to move a record across pages, you can enter the record and change the position attribute in the right sidebar:

    Caveat

    One thing to note about the drag and drop reordering and the tree-like structure reordering is that as soon as you change the position of a record, it's updated in the API, even for published records. This means you cannot have separate draft/published states for the position attribute.