From c37d7aee3b1965e882ef6f8e84682204d63e11ff Mon Sep 17 00:00:00 2001 From: David Hampton Date: Sun, 25 Nov 2001 21:53:10 +0000 Subject: [PATCH] Fix child sorting for new data format. svn: r582 --- src/sort.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sort.py b/src/sort.py index cf2b69d29..bc359e576 100644 --- a/src/sort.py +++ b/src/sort.py @@ -37,13 +37,13 @@ def build_sort_name(n): #------------------------------------------------------------------------- def build_sort_birth(n): y = n.start.year - if y == -1: + if y < 0: y = 9999 m = n.start.month - if m == -1: + if m < 0: m = 99 d = n.start.day - if d == -1: + if d < 0: d = 99 return "%04d%02d%02d" % (y,m,d)