Is there any pythonic way to sort a unordered list of links into a dependency-sorted list?
Given the following unordered_linked_list:
unordered_linked_list = [
{id: "DE3", pred: "FE8"},
{id: "FE8", pred: None},
{id: "79E", pred: "DE3"},
{id: "52D", pred: "79E"},
...
]
Which should result in
ordered_list = ["FE8", "DE3", "79E", "52D"]