From 6352fbb3b28864870e56465ebfc83ca7b188078b Mon Sep 17 00:00:00 2001 From: Viktor De Pasquale Date: Sun, 29 Sep 2019 12:54:53 +0200 Subject: [PATCH] Added additional sorting for installed modules --- .../java/com/topjohnwu/magisk/model/entity/module/Module.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/topjohnwu/magisk/model/entity/module/Module.kt b/app/src/main/java/com/topjohnwu/magisk/model/entity/module/Module.kt index 8b7d5fa3b..f71e4c71d 100644 --- a/app/src/main/java/com/topjohnwu/magisk/model/entity/module/Module.kt +++ b/app/src/main/java/com/topjohnwu/magisk/model/entity/module/Module.kt @@ -48,7 +48,7 @@ class Module(path: String) : BaseModule() { } if (name.isEmpty()) { - name = id; + name = id } } @@ -65,7 +65,7 @@ class Module(path: String) : BaseModule() { val module = Module(Const.MAGISK_PATH + "/" + file.name) moduleList.add(module) } - return moduleList + return moduleList.sortedBy { it.name } } } }