mirror of
https://github.com/Anvilcraft/modpacktools
synced 2025-01-14 22:56:51 +01:00
fix modlist sorting
This commit is contained in:
parent
cc08eca061
commit
b3b077796d
1 changed files with 3 additions and 3 deletions
|
@ -61,9 +61,9 @@ object CreateModlist : AbstractCommand("CreateModlist") {
|
|||
|
||||
val all = args.getBoolean("all")
|
||||
val sorting: Comparator<MetaData> = when(args.get<Sorting>("sorting")!!) {
|
||||
Sorting.NAME -> comparing {it.name ?: ""}
|
||||
Sorting.DESCRIPTION -> comparing {it.description?.getOrNull(0) ?: ""}
|
||||
Sorting.AUTHOR -> comparing {it.contributors.keys.first()}
|
||||
Sorting.NAME -> comparing {it.name?.toLowerCase() ?: ""}
|
||||
Sorting.DESCRIPTION -> comparing {it.description?.getOrNull(0)?.toLowerCase() ?: ""}
|
||||
Sorting.AUTHOR -> comparing {it.contributors.keys.first().toLowerCase()}
|
||||
}
|
||||
|
||||
return when(args.get<Format>("type")!!) {
|
||||
|
|
Loading…
Reference in a new issue