diff options
-rw-r--r-- | vcl/source/control/ilstbox.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vcl/source/control/ilstbox.cxx b/vcl/source/control/ilstbox.cxx index a52d34ad95cf..87b17e989564 100644 --- a/vcl/source/control/ilstbox.cxx +++ b/vcl/source/control/ilstbox.cxx @@ -25,6 +25,7 @@ #include <vcl/scrbar.hxx> #include <vcl/help.hxx> #include <vcl/lstbox.h> +#include <vcl/lstbox.hxx> #include <vcl/unohelp.hxx> #include <vcl/i18nhelp.hxx> @@ -112,6 +113,12 @@ namespace }; } +sal_Int32 ListBox::NaturalSortCompare(const OUString &rA, const OUString &rB) +{ + const comphelper::string::NaturalStringSorter &rSorter = theSorter::get(); + return rSorter.compare(rA, rB); +} + sal_Int32 ImplEntryList::InsertEntry( sal_Int32 nPos, ImplEntryType* pNewEntry, bool bSort ) { if (nPos < 0 || LISTBOX_MAX_ENTRIES <= maEntries.size()) |