.. dfhack-tool::
:summary: Sort lists shown in the DF interface.
:tags: fort productivity interface
:no-command:
.. dfhack-command:: sort-items :summary: Sort the visible item list.
.. dfhack-command:: sort-units :summary: Sort the visible unit list.
sort-items <property> [<property> ...] sort-units <property> [<property> ...]
Both commands sort the visible list using the given sequence of comparisons.
Each property can be prefixed with a < or > character to indicate
whether elements that don't have the given property defined go first or last
(respectively) in the sorted list.
sort-items material type quality- Sort a list of items by material, then by type, then by quality
sort-units profession name- Sort a list of units by profession, then by name
Items can be sorted by the following properties:
typedescriptionbase_qualityqualityimprovementwearmaterial
Units can be sorted by the following properties:
nameagearrivalnobleprofessionprofession_classracesquadsquad_positionhappiness