toloka.client.search_requests.OperationSortItems
OperationSortItems(self, items=None)
Keys for sorting operations in search results.
Parameters | Type | Description |
---|---|---|
items | Optional[List[SortItem]] | A list of sorting keys. Supported values:
|
Examples:
The example shows how to find operations sorted by finish date in the descending order. Operations with equal finish dates are sorted by IDs in the ascending order.
sort = toloka.client.search_requests.OperationSortItems(['-finished', 'id'])result = toloka_client.find_operations(type='POOL.OPEN', status='SUCCESS', sort=sort, limit=10)
Last updated: August 28, 2023