---
title: "Sort Array by Property"
description: "Sort an array of objects by a specific property in TypeScript."
date: "2025-10-02"
tags: ["typescript","array","sort","frontend"]
canonical: "/snippets/typescript/array/sort-by"
---

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

## Sort Array by Property

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