src/Task.php
public function reorder($task_list_id, array $ids)
    {
        $task_list_id = (int) $task_list_id;
        if ($task_list_id <= 0) {
            throw new Exception('Invalid param task_list_id');
        }
        return $this->rest->post("todo_lists/$task_list_id/" .
                                                "$this->action/reorder", $ids);
    }
public function reorder($task_list_id, array $ids)
    {
        $task_list_id = (int) $task_list_id;
        if ($task_list_id <= 0) {
            throw new Exception('Invalid param task_list_id');
        }
        return $this->rest->post("todo_lists/$task_list_id/" .
                                                "$this->action/reorder", $ids);
    }
public function reorder ( $ task_list_id , array $ ids ) { $ task_list_id = ( int ) $ task_list_id ; if ( $ task_list_id <= 0 ) { throw new Exception ( 'Invalid param task_list_id' ) ; } return $ this -> rest -> post ( "todo_lists/$task_list_id/" . "$this->action/reorder" , $ ids ) ; }
Reorder the todo items

POST /todo_lists/#{todo_list_id}/todo_items/reorder.xml

Re-orders items on the submitted list. Completed items cannot be reordered,
and any items not specified will be sorted after the items explicitly given
Items can be re-parented by putting them from one list into the ordering of items for a different list/

@param int $task_list_id
@param array $ids

@return bool
@throws \TeamWorkPm\Exception
Reorder the todo items