<!-- 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; [forwardSortForIndex](./worker-tls.sortqueue.forwardsortforindex.md)

## SortQueue.forwardSortForIndex() method

前向排序

**Signature:**

```typescript
forwardSortForIndex(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最终的索引

