182
182
"""Compare two paths based on what directory they are in.
184
184
This generates a sort order, such that all children of a directory are
185
185
sorted together, and grandchildren are in the same order as the
186
186
children appear. But all grandchildren come after all children.
189
192
:param path2: the second path
190
193
:return: positive number if ``path1`` comes first,