1. Return correct error code if the hash map is empty from the API
hm_linked_list_sort.
2. Return code conversion in hm_list_compare_fn_cbk based on application
callback function return code.