Sorting
Sorting
Sorting is the act of arranging data in ascending or descending order based on linear
relationships among data items.
Organizing data into a specific format is called sorting. Sorting algorithms specify the order
in which data are arranged. Usually, data are ordered numerically or alphabetically.
In data structures, sorting refers to the arrangement of data in a preferred order. Sorting data
allows a user to find information faster and easier. A dictionary is a simple example of
sorting.
Sorting is becoming more and more important as data search can be optimized to an
extremely high degree if data is stored in a sorted manner. Data can also be arranged in a
more readable manner when sorted.