better hash function.
sort key_list