/* 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);