sortChildren method

void sortChildren (int compare(DisplayObject a DisplayObject b))

Sorts the child list according to the order specified by the compare Function.

Implementation

void sortChildren(int compare(DisplayObject a, DisplayObject b)) {
  _children.sort(compare);
}