Order is a property of the format
A file or protocol states its byte order. Reading it with the wrong order is not a crash, it is a wrong number, which is why it is easy to miss.
Know your machine
Most modern computers are little-endian. Formats are often big-endian. The gap between the two is where byte-order bugs come from.