diff --git a/src/gtk1/choice.cpp b/src/gtk1/choice.cpp index a822e02ca6..1488c40ebc 100644 --- a/src/gtk1/choice.cpp +++ b/src/gtk1/choice.cpp @@ -125,7 +125,7 @@ bool wxChoice::Create( wxWindow *parent, wxWindowID id, { // if our m_strings != NULL, Append() will check for it and insert // items in the correct order - m_strings = new wxSortedArrayString; + m_strings = new wxSortedArrayString(wxDictionaryStringSortAscending); } // begin with no selection diff --git a/src/gtk1/listbox.cpp b/src/gtk1/listbox.cpp index 1220748fa7..316bed1321 100644 --- a/src/gtk1/listbox.cpp +++ b/src/gtk1/listbox.cpp @@ -541,7 +541,7 @@ bool wxListBox::Create( wxWindow *parent, wxWindowID id, if ( style & wxLB_SORT ) { // this will change Append() behaviour - m_strings = new wxSortedArrayString; + m_strings = new wxSortedArrayString(wxDictionaryStringSortAscending); } else { diff --git a/src/osx/listbox_osx.cpp b/src/osx/listbox_osx.cpp index c48607ea5a..964b806f21 100644 --- a/src/osx/listbox_osx.cpp +++ b/src/osx/listbox_osx.cpp @@ -83,7 +83,7 @@ bool wxListBox::Create( return false; if ( IsSorted() ) - m_strings.sorted = new wxSortedArrayString; + m_strings.sorted = new wxSortedArrayString(wxDictionaryStringSortAscending); else m_strings.unsorted = new wxArrayString; diff --git a/src/univ/listbox.cpp b/src/univ/listbox.cpp index e549c27953..a448b9cbb9 100644 --- a/src/univ/listbox.cpp +++ b/src/univ/listbox.cpp @@ -190,7 +190,7 @@ bool wxListBox::Create(wxWindow *parent, return false; if ( IsSorted() ) - m_strings.sorted = new wxSortedArrayString; + m_strings.sorted = new wxSortedArrayString(wxDictionaryStringSortAscending); else m_strings.unsorted = new wxArrayString;