--order¶
The --order
flag controls the sorting order of files and directories in the tree.
asc
— Sort in ascending order (default).desc
— Sort in descending order.
Usage¶
Example¶
Ascending order (default)¶
Descending order¶
Tips¶
- Always combine
--order
with--sort
to define both sort criteria and direction. - Works with
--format md
,--size
, or--count
for customized tree outputs.
```