From 74e20e0f6ac2f40bf5655609cf22c06133f0f105 Mon Sep 17 00:00:00 2001 From: Holger Schurig Date: Thu, 25 Jun 2009 23:52:30 +0200 Subject: [PATCH] hierarchy: correcly sort recently-used by mtime --- plugins/hierarchy.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/hierarchy.py b/plugins/hierarchy.py index 1a33597..8c65003 100644 --- a/plugins/hierarchy.py +++ b/plugins/hierarchy.py @@ -182,6 +182,5 @@ def get_recently(page=None, max_items=10): if len(res) < max_items: addPage(res, get_file_for(c[1])) addPage(res, orig_page) - res.sort(cmp = lambda x,y: x[0].mtime < y[0].mtime) - #for p in res: print p + res.sort(cmp = lambda x,y: cmp(y[0].mtime, x[0].mtime)) return res -- 2.39.2