Skip to content
  • Thomas Haller's avatar
    shared: add nm_cmp_int2ptr_p_with_data() helper · 901aa031
    Thomas Haller authored
    A cmp() implementation, for sorting an array with pointers, where each
    pointer is an inteter according to GPOINTER_TO_INT().
    
    That cames for example handy, if you have a GHashTable with keys
    GINT_TO_POINTER(). Then you get the list of keys via
    g_hash_table_get_keys_as_array() and want to sort them.
    901aa031