com-lihaoyi / upickle

uPickle: a simple, fast, dependency-free JSON & Binary (MessagePack) serialization library for Scala
https://com-lihaoyi.github.io/upickle
MIT License
707 stars 158 forks source link

Improve sortKeys #556

Closed lihaoyi closed 4 months ago

lihaoyi commented 4 months ago

Rather than using string-based sorting all the time, instead we try to find patterns where the keys are all numbers, and sort using their numeric values instead

Covered by additional unit tests