From 8344e6edd4ae50ddf2e05ec845e1003c4111792b Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sat, 18 Jun 2005 19:59:30 +0000 Subject: sort external links by URL git-svn-id: http://arthurdejong.org/svn/webcheck/webcheck@50 86f53f14-5ff3-0310-afe5-9b438ce3f40c --- plugins/external.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/external.py b/plugins/external.py index 738d4e8..d1f4036 100644 --- a/plugins/external.py +++ b/plugins/external.py @@ -29,8 +29,10 @@ import rptlib def generate(fp,site): """Generate the list of external links to the given file descriptor.""" + urls=site.linkMap.keys(); + urls.sort() fp.write('
    \n') - for url in site.linkMap.keys(): + for url in urls: link=site.linkMap[url] if link.external: fp.write('
  1. %s
  2. \n' % rptlib.make_link(url)) -- cgit v1.2.3