function compareStrings(a, b) {
  return stringJoin(a).localeCompare(stringJoin(b));
}
Compares two strings. also supports string arrays, which will be joined

@param {string|string[]} [a]
@param {string|string[]} [b]

@returns {number}