New in 1.32.0

orderedChildren()

Returns an ordered array of all child Objs of the CMS object.

The order of an object’s children is defined by its childOrder attribute. This attribute is assumed to be of the referencelist type. It allows editors to sort the child pages of the object. If it’s missing in the corresponding object class definition, the children are ordered randomly, and it will not be possible for editors to adjust this order.

If some of an object’s children are not included in its childOrder attribute because, for example, they were added using a script, they are appended to the orderedChildren array.

Returns

Array<Obj>