public void sortFeatures(final IFeatureSortOrder order) {
    List<FeatureInfo> features = getAllFeatures();
    features.sort(order);
    for (int i = 0; i < features.size(); i++)
      features.get(i).setExecutionOrder(i);
  }
Runtime information about a Spock specification.

@author Peter Niederwieser
spock-core/src/main/java/org/spockframework/runtime/model/SpecInfo.java