---
title: "Comment by Shivam Latawa on \"How To Sort Array in JavaScript\" | Hashnode"
description: "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"
url: "https://hashnode.com/posts/how-to-sort-array-in-javascript/61eba6105fbc177f9f3b3ce4/comment/61ebac885fbc177f9f3b3d83"
---

[Discussion](https://hashnode.com/posts/how-to-sort-array-in-javascript/61eba6105fbc177f9f3b3ce4)

Comment [How To Sort Array in JavaScript](https://hashnode.com/posts/how-to-sort-array-in-javascript/61eba6105fbc177f9f3b3ce4)

[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!
