PolygonSorter works