code: public void sortPom() {
          log.info("Sorting file " + pomFile.getAbsolutePath());
  
          String originalXml = fileUtil.getPomFileContent();
          String sortedXml = sortXml(originalXml);
          if (pomFileIsSorted(originalXml, sortedXml)) {
              log.info("Pom file is already sorted, exiting");
              return;
          }
          createBackupFile();
          saveSortedPomFile(sortedXml);
      }
docs: Sorts the pom file.