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 descending order. Assignments with equal completion dates are sorted by IDs in ascending order.
sort = toloka.client.search_requests.AssignmentSortItems(['-submitted', 'id'])result = toloka_client.find_assignments(status='SUBMITTED', sort=sort, limit=10)