protected static DynamicField[] dynamicFieldListToSortedArray(List<DynamicField> dynamicFieldList){
  DynamicField[] dFields=dynamicFieldList.toArray(new DynamicField[dynamicFieldList.size()]);
  Arrays.sort(dFields);
  log.trace("Dynamic Field Ordering:" + Arrays.toString(dFields));
  return dFields;
}

protected static DynamicField [ ] dynamicFieldListToSortedArray ( List < DynamicField > dynamicFieldList ) { DynamicField [ ] dFields = dynamicFieldList . toArray ( new DynamicField [ dynamicFieldList . size ( ) ] ) ; Arrays . sort ( dFields ) ; log . trace ( "Dynamic Field Ordering:" + Arrays . toString ( dFields ) ) ; return dFields ; }
sort the dynamic fields and stuff them in a normal array for faster access .
