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

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

# Sort a plain object's values

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