perm - permutation with the length of current child nodes. The permutation
lists the new positions of the original nodes, that is, for nodes
[A,B,C,D] and permutation [0,3,1,2], the final
order would be [A,C,D,B].

Throws:

UnknownTypeException - if this model implementation is not
able to perform the reorder for given node type