Sorting is common functionality required by many applications. Questions like: How do we sort in Java? or What should we use as sorting algorithm? need to answered before we can perform any kind of sorting. Definitely we are not the first ones who require this feature and others have already done it before for us. So we can simple use the Java API provided to perform sorting.