TSORT(1)

πŸ“¦
version 9.10 Β· 5 versions
, in ubuntu stonking

✨ TSORT(1) β€” like, the topological sort era ✨

okay bestie, sit DOWN, because this one is a whole vibe πŸ’… it lives in the GNU coreutils world and it goes by tsort, which is short for topological sort β€” yes it's giving algorithms-class but make it cute πŸŽ€


🌸 NAME 🌸

tsort β€” perform topological sort


πŸ¦‹ SYNOPSIS πŸ¦‹

tsort [OPTION] [FILE]

πŸ’– DESCRIPTION πŸ’–

So the whole plot twist here: tsort writes a totally ordered list that's consistent with the partial ordering sitting in FILE. Like, you hand it a bunch of "this comes before that" crumbs, and it hands you back one long line of "here's literally everyone, in an order that doesn't break a single one of your rules" πŸ”₯ no cap.

If you don't give it a FILE β€” or if FILE is - β€” it just reads standard input. So you can pipe right into it, main character energy 🫢

The options are short but iconic:

  • --help β€” display this help and exit πŸ’«
  • --version β€” output version information and exit ⭐

πŸ‘‘ AUTHOR πŸ‘‘

Written by Mark Kettenis.


πŸ’€ REPORTING BUGS πŸ’€

Found a bug? Don't put that in the group chat, put it in the inbox bestie 😭:


🧚 SEE ALSO 🧚


Packaged by Ubuntu (9.10-1ubuntu2).

Copyright Β© 2026 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

fr fr, no warranty β€” read that part twice πŸ’œ

GNU coreutils 9.10 Β· August 2026 Β· TSORT(1) β€” mwah, slay, go sort something topologically πŸ¦‹βœ¨

πŸ“¦ where this page comes from