What is Sorting?
Definition of Sorting
Arrangement of Elements in increasing or decreasing order is known as sorting. By-default if we talk about sorting it is considered as ascending/increasing order but, arranging elements in decreasing order is also sorting.
Importance of Sorting in Computer Science
In our general daily life also sorting plays an important role for example suppose if you want to order sneakers from amazon and they did not have section for sneaker and you scrolling and scrolling between washing machines, clothes, mobile accessories etc.. and did not find the pair of sneakers. Imagined?? Seems funny right? So in computer Science we use sorting to make job easy for you people.
Types of Sorting Algorithms
There are various types of sorting I am listing few of them.
Bubble Sort
Selection Sort
Insertion Sort
Merge Sort
Quick Sort