Commit c6e473a9 authored by Kai Willadsen's avatar Kai Willadsen

vcview: Sort VC entries in the traditional order

parent 863b3479
...@@ -357,6 +357,8 @@ class VcView(melddoc.MeldDoc, gnomeglade.Component): ...@@ -357,6 +357,8 @@ class VcView(melddoc.MeldDoc, gnomeglade.Component):
entries = self.vc.get_entries(path) entries = self.vc.get_entries(path)
entries = [e for e in entries if any(f(e) for f in filters)] entries = [e for e in entries if any(f(e) for f in filters)]
entries = sorted(entries, key=lambda e: e.name)
entries = sorted(entries, key=lambda e: not e.isdir)
for e in entries: for e in entries:
if e.isdir and e.is_present(): if e.isdir and e.is_present():
try: try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment