Fix child sorting for new data format.
svn: r582
This commit is contained in:
parent
81202417e8
commit
17710392b5
@ -37,13 +37,13 @@ def build_sort_name(n):
|
|||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
def build_sort_birth(n):
|
def build_sort_birth(n):
|
||||||
y = n.start.year
|
y = n.start.year
|
||||||
if y == -1:
|
if y < 0:
|
||||||
y = 9999
|
y = 9999
|
||||||
m = n.start.month
|
m = n.start.month
|
||||||
if m == -1:
|
if m < 0:
|
||||||
m = 99
|
m = 99
|
||||||
d = n.start.day
|
d = n.start.day
|
||||||
if d == -1:
|
if d < 0:
|
||||||
d = 99
|
d = 99
|
||||||
return "%04d%02d%02d" % (y,m,d)
|
return "%04d%02d%02d" % (y,m,d)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user