From 6d5af57b81b1d180c5e0c0d8e363553771b72455 Mon Sep 17 00:00:00 2001 From: Dominik Kaiser Date: Wed, 17 Apr 2024 15:49:14 +0200 Subject: [PATCH] Finally fix sorting Unfortunately the performance is not good right now, but this should be rather easy to fix. --- sorting.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sorting.c b/sorting.c index dfaafe2..d6c3ada 100644 --- a/sorting.c +++ b/sorting.c @@ -6,10 +6,11 @@ /* By: dkaiser a->stack[0]; while (size--) { - if (data->a->stack[0] > max) + if (data->a->stack[0] < max) { run_command(data, PB); if (data->b->stack[0] < pivot) -- 2.47.2