sortElements method

void sortElements(
  1. int comparator(
    1. PCanvasElement2D a,
    2. PCanvasElement2D b
    )
)

Implementation

void sortElements(
    int Function(PCanvasElement2D a, PCanvasElement2D b) comparator) {
  _elements.sort(comparator);
}