Kotlin HashSet sortedWith()
Syntax & Examples
Syntax of HashSet.sortedWith()
The syntax of HashSet.sortedWith() extension function is:
fun <T> Iterable<T>.sortedWith( comparator: Comparator<in T> ): List<T>
This sortedWith() extension function of HashSet returns a list of all elements sorted according to the specified comparator.