code: private OrderedMap<String, Pom> sortSubmodulesToReflectDependencies(Pom pom)
      {
          Set<MavenCoord> dependenciesMet = new HashSet();
          dependenciesMet.add(pom.coord);
  
          SortedSet<MavenCoord> dependenciesSatisfied = new TreeSet<>();
  
          for (Dependency dep : pom.dependencies)
          {
              // Traverse the tree, depth-first, take items at node exit.
          }
  
          throw new UnsupportedOperationException("Not implemented yet.");
      }
docs: Sorts the submodules of given Pom so that their cross-dependencies are satisfied if built in that order.
  TODO - MIGR-236.