Consider the following array:
As you can see the items are not arranged in any order. Sorting is the process of ordering items in a collection. Above array when sorted in ascending order will look like below.
Python has inbuilt sort function to order an array. The sort() method sorts the list ascending by default.
Example:
Result: