# topological
Topologically sort lists of any type.
[](https://hex.pm/packages/topological)
[](https://hexdocs.pm/topological/)
```sh
gleam add topological@1
```
```gleam
import topological
pub fn main() {
[#("A", ["B", "C"]), #("B", ["C"]), #("C", ["D"]), #("D", [])]
|> topological.sort
// Ok(["A", "B", "C", "D"])
}
```
Further documentation can be found at <https://hexdocs.pm/topological>.
## Development
```sh
gleam run
gleam test
```