1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/tsort.md

14 lines
467 B
Markdown
Raw Normal View History

2018-09-06 09:38:57 -04: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/manual/html_node/tsort-invocation.html>.
2018-09-06 09:38:57 -04:00
- Perform a topological sort consistent with a partial sort per line of input separated by blanks:
2022-12-04 10:12:49 +01:00
`tsort {{path/to/file}}`
- Perform a topological sort consistent on strings:
`echo -e "{{UI Backend\nBackend Database\nDocs UI}}" | tsort`