Оно собралось!
This commit is contained in:
@@ -95,6 +95,8 @@ internal class ProcessorCollection
|
||||
/// </summary>
|
||||
public void SortItems()
|
||||
{
|
||||
Items.ForEach(item => item.Priority = -1);
|
||||
|
||||
Dictionary<string, int> priorities = [];
|
||||
|
||||
while (priorities.Count < Items.Count)
|
||||
@@ -115,7 +117,7 @@ internal class ProcessorCollection
|
||||
continue;
|
||||
}
|
||||
|
||||
item.Priority = Math.Min(
|
||||
item.Priority = Math.Max(
|
||||
dependencyPriorities.Any() ? dependencyPriorities.Max() + 1 : 1,
|
||||
(int)item.Group * 100
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user