MCPcopy Create free account
hub / github.com/nodejs/node / SortGroup

Method SortGroup

tools/gyp/pylib/gyp/xcodeproj_file.py:1485–1493  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1483 child.TakeOverOnlyChild(recurse)
1484
1485 def SortGroup(self):
1486 self._properties["children"] = sorted(
1487 self._properties["children"], key=cmp_to_key(lambda x, y: x.Compare(y))
1488 )
1489
1490 # Recurse.
1491 for child in self._properties["children"]:
1492 if isinstance(child, PBXGroup):
1493 child.SortGroup()
1494
1495
1496class XCFileLikeElement(XCHierarchicalElement):

Callers 1

SortGroupsMethod · 0.80

Calls 2

sortedFunction · 0.85
CompareMethod · 0.45

Tested by

no test coverage detected