MCPcopy Index your code
hub / github.com/CadQuery/cadquery / sort

Method sort

cadquery/occ_impl/shapes.py:1932–1934  ·  view source on GitHub ↗
(self, key: Callable[[Shape], Any])

Source from the content-addressed store, hash-verified

1930 return compound(*filter(f, self))
1931
1932 def sort(self, key: Callable[[Shape], Any]) -> Compound:
1933
1934 return compound(*sorted(self, key=key))
1935
1936 def __getitem__(self, item: int | slice) -> Shape:
1937

Callers 1

Calls 1

compoundFunction · 0.85

Tested by

no test coverage detected