If the node is open, sort its children by path.
(self)
| 833 | self.__sort(lambda child: child.file_size) |
| 834 | |
| 835 | def sort_path(self): |
| 836 | "If the node is open, sort its children by path." |
| 837 | self.__sort(lambda child: child.path) |
| 838 | |
| 839 | def __sort(self, key): |
| 840 | "Sort an expanded node's children by the given key." |