---
search:
  tags:
    - projects
    - POST
seo:
  description: >-
    Reorders test cases within a component… Reference for the POST
    /projects/{projectId}/items/{itemId}/testcases/sort endpoint in the Leadtime
    Public API API.
sidebar:
  badge: POST
  label: Sort test cases within a component item
title: Sort test cases within a component item
type: openapi-operation
---
Reorders test cases within a component item by providing a new sort order array. The sort order determines the display order of test cases in the UI and affects condition evaluation order. All test case IDs in the array must belong to the specified item.

<Operation source="api-reference" id="projectcomponentscontroller-sorttestcases" />
