Toloka documentation

UserSkillSortItems

toloka.client.search_requests.UserSkillSortItems

UserSkillSortItems(self, items=None)

Keys for sorting skills in search results.

Parameters Description

Parameters Type Description
items Optional[List[SortItem]]

A list of sorting keys. Supported values:

  • 'id' — The ID of a skill.
  • 'created' — The date when a skill was created.
  • 'modified' — The date when a skill was modified.

Examples:

The example shows how to find Tolokers' skills sorted by creation date in descending order. Skills with equal creation dates are sorted by IDs in ascending order.

sort = toloka.client.search_requests.UserSkillSortItems(['-created', 'id'])
result = toloka_client.find_user_skills(skill_id=my_useful_skill_id, sort=sort, limit=10)