Actually sorting is a way of manage the randomly data in sequence.
Two types of sorting: Ascending sort and Descending sort
Ascending sort is find the smallest number in array and placed on first position and largest number laced on last position then so on.
Descending sort is find the largest number in given array and … Read more