MCPcopy Create free account
hub / github.com/ActiveState/code / sort_name

Method sort_name

recipes/Python/577635_Directory_Pruner_3/recipe-577635.py:823–825  ·  view source on GitHub ↗

If the node is open, sort its children by name.

(self)

Source from the content-addressed store, hash-verified

821 # (specific for application)
822
823 def sort_name(self):
824 "If the node is open, sort its children by name."
825 self.__sort(lambda child: child.name)
826
827 def sort_total_size(self):
828 "If the node is open, sort its children by total size."

Callers 1

sort_nameMethod · 0.45

Calls 1

__sortMethod · 0.95

Tested by

no test coverage detected