JavaScript Video Tutorial - Sorting and Reverse Sorting an Array

preview_player
Показать описание
The JavaScript array prototype provides methods to sort an array and reverse an array. This video example will show you how to arrange an array using sort, as well as reverse and sort with a custom compare function.
Рекомендации по теме
Комментарии
Автор

Thank you, this is exactly what I wanted, nothing more, nothing less.

MarreLirre
Автор

Excellent, clear and concise tutorial.

dooogyyyu
Автор

It's really interesting how function(a, b){return a.color > b.color} puts "blue" ahead of "white". I thought that the ">" sign means putting lexicographically bigger characters ahead?

MrPaulzeng
Автор

4:00 console.table(cars); would maybe be better

pleabargain
Автор

Great video, but for the love of D. Trump, please, change the font of your editor!

GoeHybrid