Corrected hm_linked_list_sort API declaration to include compare
function callback declaration and related return types.