return (cellA > cellB) * 1 + (cellA < cellB) * -1;
return Math.sign(cellA - cellB);
return (cellA > cellB) - (cellA < cellB);
'ana' > 'Bob' '2' > '123'
Or indeed drop the <, > based approach and use: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
Or: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...