Fix topological sort: Add reverse
This commit is contained in:
parent
2f222e1eeb
commit
97fde27f60
1 changed files with 2 additions and 2 deletions
|
@ -263,9 +263,9 @@ consteval auto TopologicalSort(const DependencyGraph<DependencyGraphElement<Name
|
|||
response.Push(v);
|
||||
}(i);
|
||||
};
|
||||
return utempl::Map(std::move(response.data), [](auto&& data){
|
||||
return (std::move(response.data) | utempl::Map([](auto&& data){
|
||||
return *data;
|
||||
});
|
||||
}) | utempl::Reverse())();
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue