sortDrawOrder method

void sortDrawOrder()

Implementation

void sortDrawOrder() {
  _drawableNodes.sort((a, b) => a.drawOrder.compareTo(b.drawOrder));
  for (int i = 0; i < _drawableNodes.length; i++) {
    _drawableNodes[i].drawIndex = i;
  }
  for (final ActorLayerEffectRenderer layer in _effectRenderers) {
    layer.sortDrawables();
  }
}