diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2006-04-23 13:26:34 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2006-04-23 13:26:34 +0200 |
commit | 1e2b11a0e49fcd563919aa7741600bef0b55a8e4 (patch) | |
tree | 193f07a83fdf13a195d4beac80e57a21339deb22 | |
parent | 9f0467258a2367c761406121433a845b2535ff6f (diff) |
also sort parent list by URL if titles are the same
git-svn-id: http://arthurdejong.org/svn/webcheck/webcheck@241 86f53f14-5ff3-0310-afe5-9b438ce3f40c
-rw-r--r-- | plugins/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/__init__.py b/plugins/__init__.py index 2980bc4..a48a06d 100644 --- a/plugins/__init__.py +++ b/plugins/__init__.py @@ -144,7 +144,7 @@ def print_parents(fp,link,indent=' '): # if there are no parents print nothing if len(parents) == 0: return - parents.sort(lambda a, b: cmp(a.title, b.title)) + parents.sort(lambda a, b: cmp(a.title, b.title) or cmp(a.url, b.url)) fp.write( indent+'<div class="parents">\n'+ indent+' referenced from:\n'+ |