toloka.client.search_requests.AssignmentSortItems
AssignmentSortItems(self, items=None)
Keys for sorting assignments in search results.
Parameters | Type | Description |
---|---|---|
items | Optional[List[SortItem]] | A list of sorting keys. Supported values:
|
Examples:
The example shows how to find assignments sorted by the completion date in the descending order. Assignments with equal completion dates are sorted by IDs in the descending order.
sort = toloka.client.search_requests.AssignmentSortItems(['-submitted', '-id'])result = toloka_client.find_assignments(pool_id='1080020', status='SUBMITTED', sort=sort, limit=10)
Last updated: August 28, 2023