Toloka documentation



SkillSortItems(self, items=None)

Parameters for sorting skill search results

You can specify multiple parameters. To change the sorting direction (sort in descending order), add a hyphen before the parameter. For example, sort=-id.

Parameters Description

Parameters Type Description
items Optional[List[SortItem]]

Fields by which to sort. Possible values:

  • id - Skill ID in ascending order.
  • created - Skill creation date in UTC in yyyy-MM-DD format (ascending).


How to specify and use SortItems.

sort = toloka.client.search_requests.SkillSortItems(['-created', 'id'])
result = toloka_client.find_skills(name='Image annotation', sort=sort, limit=10)