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

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

Source

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