tsort is one of my favorites, mostly because it's totally pointless until you need it and then it works exactly right. I love it.
tsort takes a list of pairs of node names representing directed arcs in a
graph and prints the nodes in topologi-cal order on standard output.
It's not often I understand nothing on a man page. But this time, I'm stumped!It's a way to do some of what make does without having to write a Makefile. 99.9% of the time, it never comes up, but when it does, it is very, very handy to be able to this in a shell pipeline. HTH.
info coreutils 'tsort invocation'