toloka.client.search_requests.TrainingSortItems
TrainingSortItems(self, items=None)
Keys for sorting training pools in search results.
Parameters | Type | Description |
---|---|---|
items | Optional[List[SortItem]] | A list of sorting keys. Supported values:
|
Examples:
The example shows how to find opened training pools sorted by the last opening date in the descending order. Pools with equal opening dates are sorted by IDs in the ascending order.
sort = toloka.client.search_requests.TrainingSortItems(['-last_started', 'id'])result = toloka_client.find_trainings(status='OPEN', sort=sort, limit=50)
Last updated: August 28, 2023