GLib.Hook.insert_sorted
Description: Reference for GLib.Hook.insert_sorted

### Function

# GLib Hookinsert_sorted

#### Declaration

    void
    g_hook_insert_sorted (
      GHookList* hook_list,
      GHook* hook,
      GHookCompareFunc func
    )

#### Description

Inserts a `GHook` into a `GHookList`, sorted by the given function.

#### Parameters

`hook_list`

  Type: `GHookList`

  A `GHookList`.

  The data is owned by the caller of the function.

`hook`

  Type: `GHook`

  The `GHook` to insert.

  The data is owned by the caller of the function.

`func`

  Type: `GHookCompareFunc`

  The comparison function used to sort the `GHook` elements.