Ascending order refers to arranging items in increasing numerical or alphabetical value. The smallest value comes first, followed by larger values.
Descending order is the opposite of ascending order; it arranges items from largest to smallest value.
Comparator Interface: The Comparator interface allows custom sorting of objects based on specific criteria.
Bubble Sort: Bubble sort is a simple sorting algorithm that repeatedly compares adjacent elements and swaps them if they are in the wrong order.