From: Joshua Wise Date: Tue, 22 Mar 2011 19:31:07 +0000 (-0400) Subject: Sorting by priority was wrong. X-Git-Url: http://git.joshuawise.com/tdl.git/commitdiff_plain/2f9132d3f31192146727553bdaf68808a02020b0 Sorting by priority was wrong. --- diff --git a/list.c b/list.c index 450961c..87552fe 100644 --- a/list.c +++ b/list.c @@ -268,9 +268,9 @@ static void print_details(struct node *y, int indent, int summarise_kids, const /* 1 if x has lower priority than y. */ static int node_lessthan(struct node *x, struct node *y)/*{{{*/ { - if (x->priority < y->priority) - return 1; if (x->priority > y->priority) + return 1; + if (x->priority < y->priority) return 0; if (x->required_by == 0 && y->required_by == 0) return (x->idx > y->idx);