---
title: "Discussion on \"How To Sort Array in JavaScript\" | Hashnode"
description: "Discussion on \"How To Sort Array in JavaScript\". Recently I have been doing a lot of interview assessment and the ones that I usually find a joy to do is all those small data structures problems, like ..."
url: "https://hashnode.com/posts/how-to-sort-array-in-javascript/61eba6105fbc177f9f3b3ce4"
---

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

Discussion

# [How To Sort Array in JavaScript](https://focussedflyer3.hashnode.dev/how-to-sort-array-in-javascript?utm_source=hashnode&utm_medium=feed)

Recently I have been doing a lot of interview assessment and the ones that I usually find a joy to do is all those small data structures problems, like ...

Jan 22, 2022 · 4 min read · focussedflyer3.hashnode.dev  
Read the article

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

## Written by

[CK Wong](https://hashnode.com/@FocussedFlyer3)

@FocussedFlyer3

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

Frontend Developer

I'm a software developer who loves to build stuff and solve daily problems. All that while sharing valuable tips for new programmers on this blog

## Responses 1

Markdown supported · ⌘↵ to post

[Shivam Latawa](https://hashnode.com/@shivamlatawa92)

[Jan 22, 2022](https://hashnode.com/posts/how-to-sort-array-in-javascript/61eba6105fbc177f9f3b3ce4/comment/61ebac885fbc177f9f3b3d83)

Nice read. I have been asked a number of times about best sorting algorithms and the complexity in the interviews but frankly I have never used anything except Array.sort() in real life problems. The interviewer is checking the problem solving ability of the candidate because you cannot judge anyone based on if they can sort array with Array.sort() or not!
