The sort order was inverted.
Comparisons that returned gtk_ordering_smaller now return gtk_ordering_larger and vice versa. Other comparisons return the same values as before.