call site 1 for path.svnurl.__cmp__
path/testing/common.py - line 147
146
147
148
149
150
   def test_listdir_sorted(self):
->     l = self.root.listdir(checker(basestarts="sample"), sort=True)
       assert self.root.join('sampledir') == l[0]
       assert self.root.join('samplefile') == l[1]
       assert self.root.join('samplepickle') == l[2]
path/svn/svncommon.py - line 174
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
   def listdir(self, fil=None, sort=None):
       """ list directory contents, possibly filter by the given fil func
               and possibly sorted.
           """
       if isinstance(fil, str):
           fil = common.fnmatch(fil)
       nameinfo_seq = self._listdir_nameinfo()
       if len(nameinfo_seq) == 1:
           name, info = nameinfo_seq[0]
           if name == self.basename and info.kind == 'file':
               #if not self.check(dir=1):
               raise py.error.ENOTDIR(self)
       paths = self._make_path_tuple(nameinfo_seq)
   
       if fil or sort:
           paths = filter(fil, paths)
           paths = isinstance(paths, list) and paths or list(paths)
           if callable(sort):
               paths.sort(sort)
           elif sort:
->             paths.sort()
       return paths