---
title: "Discussion on \"Manipulating Array using sort() in JavaScript\" | Hashnode"
description: "Discussion on \"Manipulating Array using sort() in JavaScript\". In this blog, I am going to discuss the sort method in javascript which is handy to sort the elements of an array. The method works as expected in the case of a string array but it does not work in the expected manner in case of a number array. Let u..."
url: "https://hashnode.com/posts/manipulating-array-using-sort-in-javascript/5fd0b70049835e38d0a9b64a"
---

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

Discussion

# [Manipulating Array using sort() in JavaScript](https://sanbal13.hashnode.dev/manipulating-array-using-sort-in-javascript?utm_source=hashnode&utm_medium=feed)

In this blog, I am going to discuss the sort method in javascript which is handy to sort the elements of an array. The method works as expected in the case of a string array but it does not work in the expected manner in case of a number array. Let u...

Dec 9, 2020 · 5 min read · sanbal13.hashnode.dev  
Read the article

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

## Written by

[Santosh Balchandran](https://hashnode.com/@sanbal13)

@sanbal13 · Navi Mumbai, India

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

Third attempt at software development

Learning web development at @AltCampus

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
