Toposort changes