https://cs.slides.com/colt_steele/elementary-sorting-algorithms

What is sorting?

Sorting is the process of rearranging the items in a collection (e.g. an array) so that the items are in some kind of order.

Examples

function sort(arr){
	
}

Why do we need to learn this

JavaScript has a sort method…

["Steele","Colt","Data Stuctures","Algorithms"].sort();

[ 6, 4, 15, 10].sort();

// The default sort order is according to string Unicode points