---
title: "Discussion on \"The Basics of Sorting in JavaScript\" | Hashnode"
description: "Discussion on \"The Basics of Sorting in JavaScript\". Sorting Defaults\nBy default, the sort() method in JavaScript will sort an array in place and works by looping through each item in the array and comparing each item two at a time until the array is sorted. To do this, it converts the array to strings..."
url: "https://hashnode.com/posts/the-basics-of-sorting-in-javascript/5f43e384e5215909d82eda47"
---

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

Discussion

# [The Basics of Sorting in JavaScript](https://blog.alyssaholland.me/the-basics-of-sorting-in-javascript?utm_source=hashnode&utm_medium=feed)

Sorting Defaults By default, the sort() method in JavaScript will sort an array in place and works by looping through each item in the array and comparing each item two at a time until the array is sorted. To do this, it converts the array to strings...

Aug 24, 2020 · 4 min read · blog.alyssaholland.me  
Read the article

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

## Written by

[Alyssa Holland](https://hashnode.com/@AlyssaCodes)

@AlyssaCodes

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

Programming. Productivity. Positivity

Welcome to my blog 👋🏽 I'm a Front-End Developer with a passion for learning! I write about Programming 👩🏽‍💻 and Productivity Tips ✅

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
