Toloka documentation



AssignmentSortItems(self, items=None)

Keys for sorting assignments in search results.

Parameters Description

Parameters Type Description
items Optional[List[SortItem]]

A list of sorting keys. Supported values:

  • 'id' — An assignment ID.
  • 'created' — The assigning date of a task suite.
  • 'submitted' — The completion date of a task suite.
  • 'accepted' — The acceptance date of a task suite.
  • 'rejected' — The rejection date a task suite.
  • 'skipped' — The date when a task suite was skipped.
  • 'expired' — The expiration date of a task suite.


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)