×
☰ Menu

Sorting

 

Definition of Sorting: Sorting is the process of arranging data numerically or alphabetically.

 

In computer science, sorting is the process of organizing items in an ordered sequence.

 

 

It's common to need to sort the items of an array in numerical order from highest to lowest values (descending order) or vice versa (ascending order). If the array contains string values, it may be necessary to sort them alphabetically (which is actually ascending order using ASCII values).