From 3c69526be72b24eb771a847f4346fac74fd6d371 Mon Sep 17 00:00:00 2001 From: Ben Klein Date: Tue, 13 Jan 2015 13:31:54 -0500 Subject: [PATCH] sort comparisons with std::stable_sort --- openbr/core/eval.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openbr/core/eval.cpp b/openbr/core/eval.cpp index 70192fd..1a7159a 100755 --- a/openbr/core/eval.cpp +++ b/openbr/core/eval.cpp @@ -188,7 +188,7 @@ float Evaluate(const Mat &simmat, const Mat &mask, const QString &csv, const QSt if (impostorCount == 0) qFatal("No impostor scores!"); // Sort comparisons by simmat_val (score) - std::sort(comparisons.begin(), comparisons.end()); + std::stable_sort(comparisons.begin(), comparisons.end()); QList operatingPoints; QList genuines; genuines.reserve(sqrt((float)comparisons.size())); -- libgit2 0.21.4