Sort module-deps/dgraph output topologically