<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [worker-tls](./worker-tls.md) &gt; [SortQueue](./worker-tls.sortqueue.md) &gt; [backwardSortForIndex](./worker-tls.sortqueue.backwardsortforindex.md)

## SortQueue.backwardSortForIndex() method

后向排序

**Signature:**

```typescript
backwardSortForIndex(index: number): number;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

index


</td><td>

number


</td><td>


</td></tr>
</tbody></table>
**Returns:**

number

返回item最终的索引

