]> Joshua Wise's Git repositories - tdl.git/commitdiff
Fall back on index for sort if the due date is the same, not just if both due dates... master
authorJoshua Wise <jwise@andrew.cmu.edu>
Wed, 23 Mar 2011 08:44:25 +0000 (04:44 -0400)
committerJoshua Wise <jwise@andrew.cmu.edu>
Wed, 23 Mar 2011 08:44:25 +0000 (04:44 -0400)
list.c

diff --git a/list.c b/list.c
index 87552feb67751c77b1c67701a7b5158e3edbba66..d9bfed519cd43e30c40e930a4c8e120f23a6de66 100644 (file)
--- 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;
This page took 0.024512 seconds and 4 git commands to generate.