code: function ip6addrCompare(a, b) {
    a = _toAddr(a);
    b = _toAddr(b);
  
    var i;
    for (i = 0; i < 8; i++) {
      if (a._fields[i] < b._fields[i]) {
        return -1;
      } else if (a._fields[i] > b._fields[i]) {
        return 1;
      }
    }
    return 0;
  }
docs: Compare Addr objects in a manner suitable for Array.sort().