Gtk.Ordering.from_cmpfunc
Description: Reference for Gtk.Ordering.from_cmpfunc

### Function

# Gtk Orderingfrom_cmpfunc

since: 4.2

#### Declaration [src]

    GtkOrdering
    gtk_ordering_from_cmpfunc (
      int cmpfunc_result
    )

#### Description [src]

Converts the result of a `GCompareFunc` like `strcmp()` to a `GtkOrdering` value.

Available since: 4.2

#### Parameters

`cmpfunc_result`

  Type: `int`

  Result of a comparison function.

#### Return value

Type: `GtkOrdering`

The corresponding `GtkOrdering`