swapChildren

fun swapChildren(child: Node, child2: Node): Node

Swaps the two children positions within the parents list

Parameters

child

the first child to swap

child2

the second child to swap