Sorting is a technique of arranging data either in ascending or descending order. This enables data to be readily accessible and maintainable. Also sorting makes search of element is data faster. There are different algorithms available to sort data. The decision of which algorithm to use, depends upon
- Time spent by programmer in coding a particular algorithm
- Machine time necessary for running that algorithm
- Space necessary for the program to execute