This functionality is only available for certain module packages.

You are here: Reference > SCRIPTING > Methods for components > Operations on placeholders > Organizing and sorting objects on placeholders > sortPlaceholderObjects(Placeholder placeholder, String sortedByFormula)

sortPlaceholderObjects(Placeholder placeholder, String sortedByFormula)

Sorts the objects on the placeholder placeholder in the order of the result of the sortedByFormula. The formula has the same form as the List.sortedBy(sortedByFormula) formula in the formula language.

sortPlaceholderObjects(Placeholder placeholder, String sortedByFormula)
Argument Placeholder placeholder A placeholder of the component.
String sortedByFormula A valid formula, which returns a sortedBy formula expression
Return value
Exception Throws an EvaluationException, if an invalid formula is specified.