Hook.insertSorted

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

Parameters

hookList glib.hook_list.HookList

a #GHookList

hook glib.hook.Hook

the #GHook to insert

func glib.types.HookCompareFunc

the comparison function used to sort the #GHook elements