if (cellA > cellB) return 1; if (cellA < cellB) return -1; if (cellA === cellB) return 0; throw new Error();