From 2f9132d3f31192146727553bdaf68808a02020b0 Mon Sep 17 00:00:00 2001 From: Joshua Wise Date: Tue, 22 Mar 2011 15:31:07 -0400 Subject: [PATCH] Sorting by priority was wrong. --- list.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.2