Toloka documentation



OperationSortItems(self, items=None)

Keys for sorting operations in search results.

Parameters Description

Parameters Type Description
items Optional[List[SortItem]]

A list of sorting keys. Supported values:

  • 'id' — Operation ID.
  • 'submitted' — The date and time when the request was sent.
  • 'finished' — The date and time when the operation was finished.


The example shows how to find operations sorted by finish date in descending order. Operations with equal finish dates are sorted by IDs in ascending order.

sort = toloka.client.search_requests.OperationsSearchRequest(['-finished', 'id'])
result = toloka_client.find_operations(type='POOL_OPEN', status='SUCCESS', sort=sort, limit=10)