mirror of
https://github.com/Anvilcraft/modpacktools
synced 2024-06-10 22:49:26 +02:00
fix ListRelations alphabetical sorting
This commit is contained in:
parent
c7b6672601
commit
38d9f13547
|
@ -29,7 +29,9 @@ object ListRelations : AbstractCommand("ListRelations") {
|
|||
}
|
||||
|
||||
override fun execute(args: Namespace): CommandReturn {
|
||||
val metas = MPJH.getModMetas().sortedBy {it.name}
|
||||
val metas = MPJH.getModMetas().sortedWith(
|
||||
Comparator {a, b -> b.name?.let {a.name?.compareTo(it, true)} ?: 0}
|
||||
)
|
||||
|
||||
if(args.getBoolean("csv")) {
|
||||
metas.forEach {
|
||||
|
|
Loading…
Reference in a new issue