API Reference > geometry-core > Curve > RegionOps > sortOuterAndHoleLoopsXY sortOuterAndHoleLoopsXY MethodStatic If reverse loops as necessary to make them all have CCW orientation for given outward normal. Return an array of arrays which capture the input pointers. In each first level array: The first loop is an outer loop. all subsequent loops are holes The outer loop is CCW The holes are CW. Call PolygonOps.sortOuterAndHoleLoopsXY to have the result returned as an array of arrays of polygons. sortOuterAndHoleLoopsXY(loops: Array<Loop | IndexedXYZCollection>): AnyRegion Parameter Type Description loops Array<Loop | IndexedXYZCollection> multiple loops to sort and reverse. Returns - AnyRegion Defined in core/geometry/src/curve/RegionOps.ts Line 635 Last Updated: 13 June, 2024