diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2005-06-18 21:59:30 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2005-06-18 21:59:30 +0200 |
commit | 8344e6edd4ae50ddf2e05ec845e1003c4111792b (patch) | |
tree | b1bab071ae83e64331d16928e98af23cb1fe4d5a | |
parent | f1a5f11a787e31afc30daf4eb43074da8571fe59 (diff) |
sort external links by URL
git-svn-id: http://arthurdejong.org/svn/webcheck/webcheck@50 86f53f14-5ff3-0310-afe5-9b438ce3f40c
-rw-r--r-- | plugins/external.py | 4 |
1 files changed, 3 insertions, 1 deletions
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('<ol>\n') - for url in site.linkMap.keys(): + for url in urls: link=site.linkMap[url] if link.external: fp.write(' <li>%s</li>\n' % rptlib.make_link(url)) |