See the printing loop - it goes from the "back". I'm not sure how the conversion works exactly for the byte order to be "flipped" as well (when we make the order the same), might be endian, might be something with struct and casting... but the encoding within each byte makes sense - first fields take lower bits in the byte.
i thought byte order only mattered on seq-... nvm