---
title: "Sort Object Keys"
description: "Sort the keys of an object in TypeScript."
date: "2025-10-02"
tags: ["typescript","object","sort","keys","frontend"]
canonical: "/snippets/typescript/object/sort-keys"
---

import { Code } from '@astrojs/starlight/components'
import Source from './sort-keys.ts?raw'

## Sort Object Keys

<Code code={Source} lang="ts" title="sort-keys.ts" wrap />
