diff options
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/documen3.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/data/documen3.cxx b/sc/source/core/data/documen3.cxx index 87f4dfec813b..c1bdd76c6780 100644 --- a/sc/source/core/data/documen3.cxx +++ b/sc/source/core/data/documen3.cxx @@ -89,7 +89,7 @@ void sortAndRemoveDuplicates(std::vector<ScTypedStrData>& rStrings, bool bCaseSe rStrings.erase(it, rStrings.end()); if (std::find_if(rStrings.begin(), rStrings.end(), [](ScTypedStrData& rString) { return rString.IsHiddenByFilter(); }) != rStrings.end()) { - std::sort(rStrings.begin(), rStrings.end(), ScTypedStrData::LessHiddenRows()); + std::stable_sort(rStrings.begin(), rStrings.end(), ScTypedStrData::LessHiddenRows()); } } else @@ -100,7 +100,7 @@ void sortAndRemoveDuplicates(std::vector<ScTypedStrData>& rStrings, bool bCaseSe rStrings.erase(it, rStrings.end()); if (std::find_if(rStrings.begin(), rStrings.end(), [](ScTypedStrData& rString) { return rString.IsHiddenByFilter(); }) != rStrings.end()) { - std::sort(rStrings.begin(), rStrings.end(), ScTypedStrData::LessHiddenRows()); + std::stable_sort(rStrings.begin(), rStrings.end(), ScTypedStrData::LessHiddenRows()); } } } |