removed list_sort from set_priority