sortChildren method

void sortChildren(
  1. SortChildrenCallback compare
)

Sorts the list of children of this container using a custom comparison function.

Implementation

void sortChildren(SortChildrenCallback compare) {
  children.sort(compare);
  requiresRedraw();
}