fix topological ordering function