fix arg check for item_sort_key