test that encoding sorts in the same typewise order
use bops
use bytewise, to support TypedArray