From 1e2b11a0e49fcd563919aa7741600bef0b55a8e4 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sun, 23 Apr 2006 11:26:34 +0000 Subject: 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 --- plugins/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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+'
\n'+ indent+' referenced from:\n'+ -- cgit v1.2.3