public void prepare() {
    if (!prepared) {
      synchronized (this) {
        if (!prepared) {
          sorter.sort();
          prepared = true;
        }
      }
    }
  }
Sorts features to prepare for grouping after all features have been written.
planetiler-core/src/main/java/com/onthegomap/planetiler/collection/FeatureGroup.java