tldr/pages/common/tsort.md

14 lines
434 B
Markdown
Raw Normal View History

2018-09-06 14:38:57 +01:00
# tsort
> Perform a topological sort.
> A common use is to show the dependency order of nodes in a directed acyclic graph.
> More information: <https://www.gnu.org/software/coreutils/tsort>.
2018-09-06 14:38:57 +01:00
- Perform a topological sort consistent with a partial sort per line of input separated by blanks:
2022-12-04 09:12:49 +00:00
`tsort {{path/to/file}}`
- Perform a topological sort consistent on strings:
`echo -e "{{UI Backend\nBackend Database\nDocs UI}}" | tsort`