diff --git a/samples/font/font.cpp b/samples/font/font.cpp index cbe28f8051..f7f7b6d509 100644 --- a/samples/font/font.cpp +++ b/samples/font/font.cpp @@ -648,12 +648,15 @@ bool MyFrame::DoEnumerateFamilies(bool fixedWidthOnly, else { // let the user choose - wxSortedArrayString facenames; + wxArrayString facenames; facenames.Alloc(nFacenames); int n; for ( n = 0; n < nFacenames; n++ ) facenames.Add(fontEnumerator.GetFacenames().Item(n)); + // it's more convenient to see the fonts in alphabetical order + facenames.Sort(); + n = wxGetSingleChoiceIndex ( "Choose a facename",