Sort fields are used to sort records in a collection, supporting sorting within groups.
Since the sort field is part of the same collection, a record cannot be assigned to multiple groups when using group sorting.
Built-in plugin, no separate installation required.

When creating sort fields, the sort values will be initialized:
The sort1 field is not grouped.

The sort fields of each record will be initialized based on the primary key field and creation date field.


At this time, all records in the collection will be grouped first (grouped by Class ID), and then the sort field (sort2) will be initialized. The initial values of each record are:

Sort fields are mainly used for drag-and-drop sorting of records in various blocks. The blocks that currently support drag-and-drop sorting include tables and boards.
:::warning
Table block

Relationship table block
:::warning In a one-to-many relationship block:
The final effect is consistent, but the number of records participating in the sort is different. For more details, see Sorting Rule Explanation.

Suppose there is a set of data:
When an element, say 5, moves forward to the position of 3, only the positions of items 3, 4, and 5 change. Item 5 takes the position of 3, and items 3 and 4 each shift back one position.
If we then move item 6 backward to the position of 8, item 6 takes the position of 8, and items 7 and 8 each shift forward one position.
When sorting by group, if a record is moved to another group, its group assignment will also change. For example:
When item 1 is moved after item 6 (the default behavior), its group will also change from A to B.
For example, consider a set of data:
The interface only displays a filtered view:
When item 1 is moved to the position of item 9, the positions of all intermediate items (2, 3, 4, 5, 6, 7, 8) will also change, even though they are not visible.
The interface now displays the new order based on the filtered items: