Sort according to RFC 8949, section 4.2.1 (https://www.rfc-editor.org/rfc/rfc8949.html#name-core-deterministic-encoding).
First item.
Second item.
Negative for a < b, Positive for b > a, 0 if equal.
Sort according to RFC 8949, section 4.2.1 (https://www.rfc-editor.org/rfc/rfc8949.html#name-core-deterministic-encoding).