From 26f76c8a5c5ab1a4de4d4b15b4f3b316f6e829a3 Mon Sep 17 00:00:00 2001 From: robtor Date: Tue, 5 Dec 2023 22:39:03 +0100 Subject: [PATCH] add running quicksort --- task2/include/quicksort_mt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/task2/include/quicksort_mt.h b/task2/include/quicksort_mt.h index 8c968a2..460c9df 100644 --- a/task2/include/quicksort_mt.h +++ b/task2/include/quicksort_mt.h @@ -53,7 +53,7 @@ private: auto pivot = *std::next(data.begin(), std::distance(data.begin(), data.end()) / 2); auto m1 = std::partition(data.begin(), data.end(), [pivot, this](const auto &em) { - return this->cmp(em, pivot); + return this->cmp(pivot, em); }); auto m2 = std::partition(m1, data.end(), [pivot, this](const auto &em) {