From ee683a7555b550eabc2ca5e324865855e156416c Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Tue, 16 May 2006 18:21:36 +0000 Subject: fix sorting git-svn-id: http://arthurdejong.org/svn/webcheck/webcheck@275 86f53f14-5ff3-0310-afe5-9b438ce3f40c --- plugins/size.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/size.py b/plugins/size.py index 6da8428..fe8b762 100644 --- a/plugins/size.py +++ b/plugins/size.py @@ -61,7 +61,7 @@ def generate(site): x.isinternal and _getsize(x) >= config.REPORT_SLOW_URL_SIZE*1024 ] # sort links by size (biggest first) - links.sort(lambda a, b: cmp(a.totalSize, b.totalSize)) + links.sort(lambda a, b: cmp(b.totalSize, a.totalSize)) # present results fp = plugins.open_html(plugins.size, site) if not links: -- cgit v1.2.3