TSORT(1)
💖 TSORT(1) — the general commands manual, but make it cute 🎀
okay bestie, welcome to the tsort page, straight outta the General Commands Manual ✨ this one's a lil niche but it's lowkey a baddie, trust.
✨ NAME ✨
tsort — Topological sort the strings in FILE. Strings are defined as any sequence of tokens separated by whitespace (tab, space, or newline), ordering them based on dependencies in a directed acyclic graph (DAG). Useful for scheduling and determining execution order. If FILE is not passed in, stdin is used instead. 🦋
I know, I know, "topological sort" sounds like a math class you'd skip, but fr fr it's just "put the things in the right order based on what depends on what." main character energy for scheduling 💅
✨ SYNOPSIS ✨
tsort [OPTIONS] FILE
that's it. that's the whole vibe check. give it a file (or don't, and it'll read stdin instead 🫶).
✨ DESCRIPTION ✨
Topological sort the strings in FILE. Strings are defined as any sequence of tokens separated by whitespace (tab, space, or newline), ordering them based on dependencies in a directed acyclic graph (DAG). Useful for scheduling and determining execution order. If FILE is not passed in, stdin is used instead.
so like. you feed it pairs, it figures out the order where nothing shows up before the thing it depends on. it's giving DAG energy, it's giving "the prerequisites come first", it's giving scheduling and execution order 👑
✨ OPTIONS ✨
-h,--help— Print help. the "help me bestie I'm lost" button 🌸-V,--version— Print version. for when you need to know exactly which era of this software you're living in 💅
✨ VERSION ✨
v(uutils coreutils) 0.12.0 🌈
✨ EXAMPLES ✨
Perform a topological sort consistent with a partial sort per line of input separated by blanks:
tsort path/to/file
Perform a topological sort consistent on strings:
echo -e "UI Backend\nBackend Database\nDocs UI" | tsort
📝 The examples are provided by the tldr-pages project <https://tldr.sh> under the CC BY 4.0 License. Please note that, as uutils is a work in progress, some examples might fail.
ngl that second one is such a slay — Docs and UI and Backend all getting sorted into their correct dependency order like the icons they are 👑✨
and that's the whole page bestie!! 🎀 this was TSORT(1) from the General Commands Manual, version v(uutils coreutils) 0.12.0, dated 2026-09-25. go forth and sort topologically, you absolute legend 💖🦋🌸
📦 where this page comes from
- ubuntu stonking: rust-coreutils 0.12.0-1ubuntu2 · MIT
- 💖 girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms