---
title: "Discussion on \"How to sort an array of objects in javascript\" | Hashnode"
description: "Discussion on \"How to sort an array of objects in javascript\". How would you sort a given array of objects in javascript?\nconst numbers = [\n  {\n    value: 2,\n    order: 'two',\n    isEven: true\n  },\n  {\n    value: 3,\n    order: 'three',\n    isEven: false\n  },\n  {\n    value: 5,\n    order: 'five',\n    isEven: false..."
url: "https://hashnode.com/posts/how-to-sort-an-array-of-objects-in-javascript/6023cc9150d5e944c5d46d1b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to sort an array of objects in javascript](https://facade.hashnode.dev/how-to-sort-an-array-of-objects-in-javascript?utm_source=hashnode&utm_medium=feed)

How would you sort a given array of objects in javascript? const numbers = \[ { value: 2, order: 'two', isEven: true }, { value: 3, order: 'three', isEven: false }, { value: 5, order: 'five', isEven: false...

Feb 10, 2021 · 5 min read · facade.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#array](https://hashnode.com/tag/array)
-   [#objects](https://hashnode.com/tag/objects)
-   [#sorting](https://hashnode.com/tag/sorting)

## Written by

['Fisayo Watti](https://hashnode.com/@watti)

@watti

  
[View profile](https://hashnode.com/@watti)

Digital Interface Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
