I think this could just be the shorter `a.toLowerCase().localeCompare(b.toLowerCase())`