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)