* @memberof ktxHashList @public * @~English * @brief Sort a hash list in order of the UTF8 codepoints. * * @param [in] pHead pointer to the head of the target hash list. * * @return KTX_SUCCESS or one of the following error codes. * * @exception KTX_INVALID_VALUE if @p This is NULL. */
| 478 | * @exception KTX_INVALID_VALUE if @p This is NULL. |
| 479 | */ |
| 480 | KTX_error_code |
| 481 | ktxHashList_Sort(ktxHashList* pHead) |
| 482 | { |
| 483 | if (pHead) { |
| 484 | //ktxKVListEntry* kv = (ktxKVListEntry*)pHead; |
| 485 | |
| 486 | HASH_SORT(*pHead, sort_by_key_codepoint); |
| 487 | return KTX_SUCCESS; |
| 488 | } else { |
| 489 | return KTX_INVALID_VALUE; |
| 490 | } |
| 491 | } |
| 492 | |
| 493 | |
| 494 | /** |
no outgoing calls