added pointer to func to list_sort