throw new IllegalArgumentException();
}
checkASTLevel(level);
ICompilationUnit[] compilationUnits = new ICompilationUnit[] { compilationUnit };
SortElementsOperation operation = new SortElementsOperation(level, compilationUnits, positions, comparator);
operation.runOperation(monitor);
}
/**
* Reorders the declarations in the given compilation unit according to the
* specified comparator. The caller is responsible for arranging in advance