JavaScript Array Methods: How To Sort An Array — Jamie Pittman

Jamie Pittman
3 min readJul 28, 2020

A common need when working with arrays in JavaScript is having the ability to sort in a specific order.

How do we easily sort an array in JavaScript?

I want to walk you through how to use the JavaScript sort() array method properly. As the name of the JavaScript array method implies, sort() will sort an…

Jamie Pittman

Engineer, teacher, athlete, & master of some. Connect w/ me on Instagram: jamie_lyn_pittman & LinkedIn: