It seems like Array.prototype.sort() is broken with BigInt
Array.prototype.sort()
BigInt
This works
const big = [1n, 2n, 3n, 4n]; big.sort(); console.log(b