From 5952d8ade48d8a3e2233b5f38805508e63b01f3b Mon Sep 17 00:00:00 2001 From: rektdie Date: Mon, 3 Mar 2025 19:51:25 +0100 Subject: [PATCH] replaced std::sort with std::stable_sort in MoveOrder --- source/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/search.cpp b/source/search.cpp index 710cc91..d5372ab 100644 --- a/source/search.cpp +++ b/source/search.cpp @@ -51,7 +51,7 @@ static void SortMoves(Board &board) { } // Sort indices based on scores - std::sort(indices.begin(), indices.begin() + board.currentMoveIndex, + std::stable_sort(indices.begin(), indices.begin() + board.currentMoveIndex, [&scores](int a, int b) { return scores[a] > scores[b]; });