hsort¶
Category: hash
GitHub: cute_hashtable.h
Sorts the {key, item} pairs in the table by keys.
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.