hgext/keyword.py
changeset 6762 f67d1468ac50
parent 6760 4faaa0535ea7
child 6867 e64f5abb8a88
--- a/hgext/keyword.py	Fri Jun 27 14:53:30 2008 -0500
+++ b/hgext/keyword.py	Fri Jun 27 18:28:45 2008 -0500
@@ -183,7 +183,6 @@
         candidates = [f for f in files if self.iskwfile(f, ctx.flags)]
         if candidates:
             self.restrict = True # do not expand when reading
-            candidates.sort()
             action = expand and 'expanding' or 'shrinking'
             for f in candidates:
                 fp = self.repo.file(f)
@@ -382,8 +381,7 @@
     kwt = kwtools['templater']
     status = _status(ui, repo, kwt, opts.get('untracked'), *pats, **opts)
     modified, added, removed, deleted, unknown, ignored, clean = status
-    files = modified + added + clean + unknown
-    files.sort()
+    files = util.sort(modified + added + clean + unknown)
     wctx = repo[None]
     kwfiles = [f for f in files if kwt.iskwfile(f, wctx.flags)]
     cwd = pats and repo.getcwd() or ''