{
    "content": [
        {
            "type": "text",
            "text": "# tsort(1) (man)\n\n## TLDR\n\n> Perform a topological sort.\n\n- Perform a topological sort consistent with a partial sort per line of input separated by blanks:\n  `tsort {{path/to/file}}`\n- Perform a topological sort consistent on strings:\n  `echo -e \"{{UI Backend\\nBackend Database\\nDocs UI}}\" | tsort`\n\n*Source: tldr-pages*\n\n---\n\n**Summary:** tsort - perform topological sort\n\n**Synopsis:** tsort [OPTION] [FILE]\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| — | --version | — | output version information and exit |\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (2 lines)\n- **DESCRIPTION** (6 lines) — 1 subsections\n  - --version (2 lines)\n- **AUTHOR** (2 lines)\n- **REPORTING BUGS** (3 lines)\n- **COPYRIGHT** (5 lines)\n- **SEE ALSO** (6 lines)\n\n## Full Content\n\n### NAME\n\ntsort - perform topological sort\n\n### SYNOPSIS\n\ntsort [OPTION] [FILE]\n\n### DESCRIPTION\n\nWrite totally ordered list consistent with the partial ordering in FILE.\n\nWith no FILE, or when FILE is -, read standard input.\n\n--help display this help and exit\n\n#### --version\n\noutput version information and exit\n\n### AUTHOR\n\nWritten by Mark Kettenis.\n\n### REPORTING BUGS\n\nGNU coreutils online help: <https://www.gnu.org/software/coreutils/>\nReport any translation bugs to <https://translationproject.org/team/>\n\n### COPYRIGHT\n\nCopyright  ©  2020 Free Software Foundation, Inc.  License GPLv3+: GNU GPL version 3 or later\n<https://gnu.org/licenses/gpl.html>.\nThis is free software: you are free to change and redistribute it.  There is NO WARRANTY,  to\nthe extent permitted by law.\n\n### SEE ALSO\n\nFull documentation <https://www.gnu.org/software/coreutils/tsort>\nor available locally via: info '(coreutils) tsort invocation'\n\n\n\nGNU coreutils 8.32                          January 2026                                    TSORT(1)\n\n"
        }
    ],
    "structuredContent": {
        "command": "tsort",
        "section": "1",
        "mode": "man",
        "summary": "tsort - perform topological sort",
        "synopsis": "tsort [OPTION] [FILE]",
        "tldr_summary": "Perform a topological sort.",
        "tldr_examples": [
            {
                "description": "Perform a topological sort consistent with a partial sort per line of input separated by blanks",
                "command": "tsort {{path/to/file}}"
            },
            {
                "description": "Perform a topological sort consistent on strings",
                "command": "echo -e \"{{UI Backend\\nBackend Database\\nDocs UI}}\" | tsort"
            }
        ],
        "tldr_source": "official",
        "flags": [
            {
                "flag": "",
                "long": "--version",
                "arg": null,
                "description": "output version information and exit"
            }
        ],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 6,
                "subsections": [
                    {
                        "name": "--version",
                        "lines": 2,
                        "long": "--version"
                    }
                ]
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "REPORTING BUGS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 6,
                "subsections": []
            }
        ]
    }
}