Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2006-04-23 13:26:34 +0200
committerArthur de Jong <arthur@arthurdejong.org>2006-04-23 13:26:34 +0200
commit1e2b11a0e49fcd563919aa7741600bef0b55a8e4 (patch)
tree193f07a83fdf13a195d4beac80e57a21339deb22
parent9f0467258a2367c761406121433a845b2535ff6f (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__.py2
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'+