hashtable sort

how can i sort a hashtable in C language with iterator parameter.

thanks for help

Wouldn't it be simpler to use a binary tree that's sorted as a result of adding data? Sorting an open hash table would destroy hashing and a chained hashtable could be expensive.