public static void TopologicalSort(IList <T> modsOrPlugins, Func <T, string> modNameGetter) { DependencyGraph <T> dependencyGraph = new DependencyGraph <T>(modsOrPlugins, modNameGetter); modsOrPlugins.Clear(); dependencyGraph.TopologicalSortInto(modsOrPlugins); }
public static void TopologicalSort(IList <T> modsOrPlugins) { if (modsOrPlugins.Count <= 0) { return; } DependencyGraph <T> dependencyGraph = new DependencyGraph <T>(modsOrPlugins); modsOrPlugins.Clear(); dependencyGraph.TopologicalSortInto(modsOrPlugins); }