Replace sort with sorted.
This commit is contained in:
+1
-1
@@ -67,7 +67,7 @@ public abstract class AndroidLayoutXmlFileManager(val project: Project) {
|
||||
|
||||
val layoutNameToXmls = allLayoutPsiFiles
|
||||
.groupBy { it.name.substringBeforeLast('.') }
|
||||
.mapValues { it.getValue().sortBy { it.parent!!.name.length() } }
|
||||
.mapValues { it.getValue().sortedBy { it.parent!!.name.length() } }
|
||||
|
||||
return layoutNameToXmls
|
||||
}
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ package org.jetbrains.kotlin.android.synthetic.res
|
||||
import org.jetbrains.kotlin.android.synthetic.AndroidConst
|
||||
|
||||
public data class AndroidModuleInfo(val applicationPackage: String, resDirectories: List<String>) {
|
||||
val resDirectories = resDirectories.sort()
|
||||
val resDirectories = resDirectories.sorted()
|
||||
}
|
||||
|
||||
public abstract class AndroidResource(val id: String) {
|
||||
|
||||
Reference in New Issue
Block a user