mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-05 17:14:35 +02:00
fix: JsonGenerator
does not generate patch names in lexicographic order
This commit is contained in:
parent
8b487479d9
commit
b0fb19830e
@ -6,7 +6,9 @@ import com.google.gson.GsonBuilder
|
|||||||
import java.io.File
|
import java.io.File
|
||||||
|
|
||||||
internal class JsonGenerator : PatchesFileGenerator {
|
internal class JsonGenerator : PatchesFileGenerator {
|
||||||
override fun generate(patches: PatchSet) = patches.map {
|
override fun generate(patches: PatchSet) = patches
|
||||||
|
.sortedBy { it.name }
|
||||||
|
.map {
|
||||||
JsonPatch(
|
JsonPatch(
|
||||||
it.name!!,
|
it.name!!,
|
||||||
it.description,
|
it.description,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user