src/server/pkg/dag/dag.go
func (d *DAG) Sorted() []string {
	seen := make(map[string]bool)
	var result []string
	for id := range d.parents {
		result = append(result, dfs(id, d.parents, seen)...)
	}
	return result
}
func (d *DAG) Sorted() []string {
	seen := make(map[string]bool)
	var result []string
	for id := range d.parents {
		result = append(result, dfs(id, d.parents, seen)...)
	}
	return result
}
func ( d * DAG ) Sorted ( ) [ ] string { seen := make ( map [ string ] bool ) var result [ ] string for id := range d . parents { result = append ( result , dfs ( id , d . parents , seen ) ... ) } return result }
// Sorted returns all nodes in a topologically sorted order
Sorted returns all nodes in a topologically sorted order