Validator: simplify (and correct) the map sorting verification
Validator: simplify (and correct) the map sorting verification

We don't need to compare the map lengths directly. The memcmp is
sufficient, since the source data is big endian.

Of course, verifying for sorting requires the map has known length.

Signed-off-by: Thiago Macieira <0ed1648d92ca0373297a182b1dba1b974ad10d88@intel.com>

intel/tinycbor,intel/tinycbor,intel/tinycbor,intel/tinycbor