change action method sort to api_sort