summaryrefslogtreecommitdiff
path: root/src/solver.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/solver.c')
-rw-r--r--src/solver.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/solver.c b/src/solver.c
index d7386d2..68aec53 100644
--- a/src/solver.c
+++ b/src/solver.c
@@ -1023,13 +1023,13 @@ static int compare_name_dequeue(const struct apk_name *a, const struct apk_name
{
int r;
- r = (!!a->ss.requirers) - (!!b->ss.requirers);
- if (r) return -r;
-
r = (int)a->priority - (int)b->priority;
if (r) return r;
r = a->ss.max_dep_chain - b->ss.max_dep_chain;
+ if (r) return -r;
+
+ r = (!!a->ss.requirers) - (!!b->ss.requirers);
return -r;
}