From: Dominik Kaiser Date: Wed, 17 Apr 2024 13:49:14 +0000 (+0200) Subject: Finally fix sorting X-Git-Url: https://git.dkaiser.de/?a=commitdiff_plain;h=6d5af57b81b1d180c5e0c0d8e363553771b72455;p=42%2Fpush_swap.git Finally fix sorting Unfortunately the performance is not good right now, but this should be rather easy to fix. --- 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)