Skip to content

Commit d55f2ee

Browse files
committed
Fixed random tests failure
1 parent 4a790dc commit d55f2ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jamspell/spell_corrector.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ void TSpellCorrector::FilterCandidatesByFrequency(std::unordered_set<TWord, TWor
152152
candidateCounts.push_back(std::make_pair(cnt, c));
153153
}
154154
uniqueCandidates.clear();
155-
std::sort(candidateCounts.begin(), candidateCounts.end(), [](const TCountCand& a, const TCountCand& b) {
155+
std::stable_sort(candidateCounts.begin(), candidateCounts.end(), [](const TCountCand& a, const TCountCand& b) {
156156
return a.first > b.first;
157157
});
158158

0 commit comments

Comments
 (0)