Introduction/Overview of Sorting

What is Sorting?

Sorting is the process of modifying an array or ArrayList in order to have the elements be in increasing or decreasing order.


Why do we need to sort arrays or ArrayLists?

Sorting is extremely helpful for use in many computer algorithms such as the efficient and popular Binary Search algorithm which can only be done on a sorted array.

Sorting can also make the organization of information more organized and easier to read and analyze.



Below you will find links to tutorials on Selection Sort and Insertion Sort: