Return a new array sorted by the bytewise lexicographic order of each element's CBOR encoding.
const sorted = sortArrayByCborEncoding([3, 1, 2]); // [1, 2, 3] Copy
const sorted = sortArrayByCborEncoding([3, 1, 2]); // [1, 2, 3]
Return a new array sorted by the bytewise lexicographic order of each element's CBOR encoding.