From: Holger Schurig Date: Thu, 25 Jun 2009 21:52:30 +0000 (+0200) Subject: hierarchy: correcly sort recently-used by mtime X-Git-Url: https://oss.titaniummirror.com/gitweb?p=oss-web.git;a=commitdiff_plain;h=74e20e0f6ac2f40bf5655609cf22c06133f0f105 hierarchy: correcly sort recently-used by mtime --- 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