Sorting is the process of arranging elements in some logical order.
Sorting methods are classified into the following categories:
- External sorting: This deals with sorting of data stored in external files. This method is used when the volume of data is very large and cannot be held in a computer’s RAM.
- Internal sorting: This deals with sorting of data held in the RAM of a computer.