Skip to content

hsort

Category: hash
GitHub: cute_hashtable.h


Sorts the {key, item} pairs in the table by keys.

#define hsort(h) cf_hashtable_sort(h)
Parameters Description
h The hashtable. Can be NULL. Needs to be a pointer to the type of items in the table.

Remarks

The keys and items returned by hkeys and hitems will be sorted. Recall that all keys in the hashtable are treated as uint64_t, so the sorting simply sorts the keys from least to greatest as uint64_t. This is not a stable sort.

htbl
hswap
hsisort
hssort