tidied up the compareBy helper function a little; only compare based on the functions given
This commit is contained in:
@@ -95,7 +95,7 @@ class KDocConfig() {
|
||||
|
||||
protected class LongestFirstStringComparator() : Comparator<String> {
|
||||
override fun compare(s1: String?, s2: String?): Int {
|
||||
return compareBy(s1, s2, { (s: String) -> s.length() })
|
||||
return compareBy(s1, s2, { (s: String) -> s.length() }, { (s: String) -> s })
|
||||
}
|
||||
|
||||
override fun equals(obj : Any?) : Boolean {
|
||||
|
||||
Reference in New Issue
Block a user