]> oss.titaniummirror.com Git - webber.git/blobdiff - plugins/hierarchy.py
hierarchy: correcly sort recently-used by mtime
[webber.git] / plugins / hierarchy.py
index 1a33597cc4710b9759963c04391cc7e0b80d994c..8c65003610e7341c3037df97b72bb3dfa4bbfd6c 100644 (file)
@@ -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