tidied up the compareBy helper function a little; only compare based on the functions given

This commit is contained in:
James Strachan
2012-03-26 15:06:56 +01:00
parent bc17c7b4f3
commit 2803dfca08
2 changed files with 7 additions and 8 deletions
@@ -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 {