diff --git a/manager/app/src/main/java/me/weishu/kernelsu/ui/component/profile/RootProfileConfig.kt b/manager/app/src/main/java/me/weishu/kernelsu/ui/component/profile/RootProfileConfig.kt index 79a1b1c2..803d33df 100644 --- a/manager/app/src/main/java/me/weishu/kernelsu/ui/component/profile/RootProfileConfig.kt +++ b/manager/app/src/main/java/me/weishu/kernelsu/ui/component/profile/RootProfileConfig.kt @@ -192,7 +192,12 @@ fun GroupsPanel(selected: List, closeSelection: (selection: Set) if (showDialog) { val groups = Groups.values().sortedWith(compareBy { - it != Groups.ROOT + when (it) { + Groups.ROOT -> 0 + Groups.SYSTEM -> 1 + Groups.SHELL -> 2 + else -> Int.MAX_VALUE + } }.then(compareBy { it.name })) val options = groups.map { value -> ListOption(