isSortedByName

fun List<KoNameProvider>.isSortedByName(ascending: Boolean = true, ignoreCase: Boolean = true): Boolean

Extension function to check if a collection of KoNameProvider is sorted by name.

Return

true if the collection is sorted by name in the specified order, false otherwise.

Parameters

ascending

Determines the order of sorting. If true (default), checks for ascending order. If false, checks for descending order.

ignoreCase

Determines whether the comparison should be case-insensitive. Default is true.