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) {