Cleanup ordering, improve API

This commit is contained in:
Ilya Ryzhenkov
2014-11-07 17:07:35 +03:00
parent e890c2ee0d
commit 828ba385ea
13 changed files with 208 additions and 194 deletions
@@ -114,7 +114,7 @@ class KDocConfig() {
private object LongestFirstStringComparator : Comparator<String> {
override fun compare(o1: String, o2: String): Int {
return compareBy<String>(o1, o2, { length() }, { this })
return compareValuesBy<String>(o1, o2, { it.length() }, { it })
}
override fun equals(other: Any?): Boolean {