code: public static LocalProperties forOrdering(Ordering o) {
  		LocalProperties props = new LocalProperties();
  		props.ordering = o;
  		props.groupedFields = o.getInvolvedIndexes();
  		return props;
  	}
docs: --------------------------------------------------------------------------------------------