This lesson is for subscribers
You've completed the free preview. Subscribe to unlock every lesson in every course.
Apply reversed() to Comparator.naturalOrder() to sort elements in descending order without writing custom logic.
You've completed the free preview. Subscribe to unlock every lesson in every course.