From aee3c241b7eaed3ef659570c7a4eb9654c1e3702 Mon Sep 17 00:00:00 2001 From: Joshua Wise Date: Wed, 23 Mar 2011 04:44:25 -0400 Subject: [PATCH] Fall back on index for sort if the due date is the same, not just if both due dates don't exist. --- list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/list.c b/list.c index 87552fe..d9bfed5 100644 --- a/list.c +++ b/list.c @@ -272,7 +272,7 @@ static int node_lessthan(struct node *x, struct node *y)/*{{{*/ return 1; if (x->priority < y->priority) return 0; - if (x->required_by == 0 && y->required_by == 0) + if (x->required_by == y->required_by) return (x->idx > y->idx); if (y->required_by == 0) return 1; -- 2.39.2