The module dependencies are sorted ascendingly based on no of
predecessors.