I definitely meant ordering by Unicode code points. Someone very helpfully opened an issue and we're trying to figure out the right wording there: https://github.com/seagreen/Son/issues/13
Looks good. I still foresee interoperability problems between implementations, though. It just is too easy to mix up the ‘sort by key’ and ‘escape various control characters’ steps (CR sorts before ascii characters, but “\n” sorts after it)
Even if the spec requires it, I fear implementations will also canonicalize strings differently, breaking sort order.
Even if the spec requires it, I fear implementations will also canonicalize strings differently, breaking sort order.