go-fed / activity

ActivityStreams & ActivityPub in golang, oh my!
BSD 3-Clause "New" or "Revised" License
702 stars 111 forks source link

make context sorted in a predictive way #160

Closed eliecharra closed 9 months ago

eliecharra commented 1 year ago

On a project I have, I'm testing my service http response against a set of JSON files. It seems that my tests are flacky because of some ordering changes in the @context key.

I've found the TODO in the code to handle that so I started directly working on a PR instead of opening an issue to trigger discussions. This PR handle sorting only on strings.