]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/listbox.cpp
Add possibility to use sizers in ribbon panel, fixes #12404: wxRibbonPanel and wxSizer
[wxWidgets.git] / src / gtk / listbox.cpp
index 0a266f5376d76bc5a2fa0e2f9be0bd11e2132731..1bad9b14d70f05feda07b073a5e0eb297517eded 100644 (file)
@@ -280,7 +280,7 @@ static gint gtk_listbox_sort_callback(GtkTreeModel * WXUNUSED(model),
     //We compare collate keys here instead of calling g_utf8_collate
     //as it is rather slow (and even the docs reccommend this)
     int ret = strcmp(gtk_tree_entry_get_collate_key(entry),
-                     gtk_tree_entry_get_collate_key(entry2));
+                     gtk_tree_entry_get_collate_key(entry2)) >= 0;
 
     g_object_unref (entry);
     g_object_unref (entry2);