// Sort the graph topologically.
List orderedContainers;
try {
orderedContainers = sorter.sort();
} catch (SortException e) {
throw new OrderException("Could not order some of the containers.", e.getUnsortedNodes());
}
// Reverse the list of containers, so that all dependencies are placed