Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--logviewer.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/logviewer.py b/logviewer.py
index 18b43f7..642bdd0 100644
--- a/logviewer.py
+++ b/logviewer.py
@@ -155,6 +155,12 @@ class MultiLogView(Gtk.Paned):
return -1
return 0
else:
+ # Put first the files and later the directories
+ if a.endswith('.log') and not b.endswith('.log'):
+ return -1
+ if b.endswith('.log') and not a.endswith('.log'):
+ return 1
+
if a > b:
return 1
if a < b: