

# $orderByKey

<div class="api-docs__separator" data-reactroot="">

---

</div><div class="api-docs__import" data-reactroot="">

```ts
import { $orderByKey } from "@hyper-fetch/firebase"
```

</div><div class="api-docs__section">

## Description

</div><div class="api-docs__description"><span class="api-docs__do-not-parse">



</span></div><p class="api-docs__definition">

Defined in [constraints/constraints.firebase.ts:73](https://github.com/BetterTyped/hyper-fetch/blob/c3e2c45/packages/adapter-firebase/src/constraints/constraints.firebase.ts#L73)

</p><div class="api-docs__section">

## Preview

</div><div class="api-docs__preview fn">

```ts
$orderByKey()
```

</div><div class="api-docs__section">

## Returns

</div><div class="api-docs__returns">

```ts
{
  toString: () => string;
  type: FirebaseQueryConstraints;
  values: any[];
}
```

</div>