more ergonomic topological ordering