Under certain circumstances, we might need to arrange values that we collect into a certain arrangement. This is known as sorting. Sorting not only identifies the important values but it also allows these values to be arranged according to priority.
Recognizing this importance, I'd like to discuss on a sorting algorithm which I came across while viewing the Introduction to Algorithms course by MITOpenCourseWare on iTunes and how I implemented it on MATLAB
|Figure I. Pseudo code for insertion sort|