---
title: "Discussion on \"Custom Array Sort Algorithms in JavaScript\" | Hashnode"
description: "Discussion on \"Custom Array Sort Algorithms in JavaScript\". https://www.youtube.com/watch?v=-S8b_j5XBV0\nJavaScript's Default Array Sort\nJavaScript's Array.sort defaults to a String sort. This catches many people off guard when attempting to sort an Array of type Number.\n// ❌ Default search is a String search\n..."
url: "https://hashnode.com/posts/custom-array-sort-algorithms-in-javascript/5f9197afc626a0545fb61148"
---

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

Discussion

# [Custom Array Sort Algorithms in JavaScript](https://joel.net/custom-array-sort-algorithms-in-javascript?utm_source=hashnode&utm_medium=feed)

https://www.youtube.com/watch?v=-S8b\_j5XBV0 JavaScript's Default Array Sort JavaScript's Array.sort defaults to a String sort. This catches many people off guard when attempting to sort an Array of type Number. // ❌ Default search is a String search ...

Oct 22, 2020 · 3 min read · joel.net  
Updated Oct 24, 2020  
Read the article

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

## Written by

[Joel Thoms](https://hashnode.com/@joelnet)

@joelnet

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

Computer Scientist

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
