Changed docstring param sort to sort_order (to reflect the API).