code: function sortByCn(certsList) {
    return certsList.concat().sort((a, b) => {
      const domainA = psl.get(a.cns[0].replace('*', 'wildcard'));
      const domainB = psl.get(b.cns[0].replace('*', 'wildcard'));
      if (!domainA || !domainB) return 0;
      return domainA.localeCompare(domainB);
    });
  }
docs: This function sorts the list of certs by root domain changing *
  to 'wildcard' since that will allow psl get the root domain
  properly to make the comparison.