<!-- 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; [sortItem](./worker-tls.sortqueue.sortitem.md)

## SortQueue.sortItem() method

排序 item

**Signature:**

```typescript
sortItem(item: Item): number;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

item


</td><td>

Item


</td><td>


</td></tr>
</tbody></table>
**Returns:**

number

如果item 不在队列中，返回 false；否则返回 true

