The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Sort an Array Alphabetically or Numerically

Sort an Array Alphabetically or Numerically

6:23
Sort can automatically arrange items in an array. In this lesson we look at the basics including how to sort an array of strings alphabetically and the correct way to perform a numerical sort on an array of numbers. We finish as always with a practical use-case that shows not only `sort` in action, but also how it can be chained together with other array methods such as `map` and `join`.
Watch this lesson now
Avatar
egghead.io

Sort can automatically arrange items in an array. In this lesson we look at the basics including how to sort an array of strings alphabetically and the correct way to perform a numerical sort on an array of numbers. We finish as always with a practical use-case that shows not only sort in action, but also how it can be chained together with other array methods such as map and join.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?