Commit 6352fbb3 authored by Viktor De Pasquale's avatar Viktor De Pasquale Committed by John Wu

Added additional sorting for installed modules

parent d3f49334
...@@ -48,7 +48,7 @@ class Module(path: String) : BaseModule() { ...@@ -48,7 +48,7 @@ class Module(path: String) : BaseModule() {
} }
if (name.isEmpty()) { if (name.isEmpty()) {
name = id; name = id
} }
} }
...@@ -65,7 +65,7 @@ class Module(path: String) : BaseModule() { ...@@ -65,7 +65,7 @@ class Module(path: String) : BaseModule() {
val module = Module(Const.MAGISK_PATH + "/" + file.name) val module = Module(Const.MAGISK_PATH + "/" + file.name)
moduleList.add(module) moduleList.add(module)
} }
return moduleList return moduleList.sortedBy { it.name }
} }
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment