# Composite.orderedEnabledItems

Sorts a copy by mounted DOM order and then removes disabled items.

## Signatures

```ts
export declare function orderedEnabledItems<Item extends Collection.Item<unknown, object>>(items: readonly Item[]): readonly Item[];
```

## Why

Separating this deterministic policy from event wiring lets applications test it directly and
reuse it in custom composites.

## Ownership and lifetime

This is a synchronous calculation. It acquires no resources and does not mutate the input array,
state, event, or DOM.

## Examples

```ts
import * as Composite from "@typed/ui/Composite";

const items = Composite.orderedEnabledItems([{ id: "a" }, { id: "b", disabled: true }]);
```
