public override void Sort() { switch (axis) { case Axis.X: list.SortXInsertionAscending(); break; case Axis.Y: list.SortYInsertionAscending(); break; case Axis.Z: throw new Exception(); } }