summaryrefslogtreecommitdiff
path: root/vcl/source/control
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-09-04 15:09:30 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-09-04 15:10:32 +0100
commit3e6d47408db3717690515fcb8051dddd8fb3d9a6 (patch)
tree65538b461c28e524235cd20122b5812d4c09af30 /vcl/source/control
parente047caf4bb461fb168d9fe08228c049938ca1698 (diff)
missing part of natural sort commit
Change-Id: I8cf86d69cfed220c940a5a3d499790d82b7ba319
Diffstat (limited to 'vcl/source/control')
-rw-r--r--vcl/source/control/ilstbox.cxx7
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())