If you want to produce a Canonical-OER encoding, you can choose to do so either at code generation time by specifying the -coer switch or at runtime by invoking setCanonicalMode(true) on the encode buffer.
setCanonicalMode(true)