private List<TarArchiveEntry> getSortedEntries() {
      List<TarArchiveEntry> sortedEntries = new ArrayList<>(entries);
      sortedEntries.sort(Comparator.comparing(TarArchiveEntry::getName));
      return sortedEntries;
    }
Adds a {@link TarArchiveEntry} if its extraction path does not exist yet. Also adds all of
the parent directories on the extraction path, if the parent does not exist. Parent will have
modification time set to {@link FileEntriesLayer#DEFAULT_MODIFICATION_TIME}.

@param tarArchiveEntry the {@link TarArchiveEntry}
@throws IOException if an I/O error occurs
jib-core/src/main/java/com/google/cloud/tools/jib/image/ReproducibleLayerBuilder.java