lessThanString function

bool lessThanString(
  1. String s1,
  2. String s2
)

Compare Strings by code units

Implementation

bool lessThanString(String s1, String s2) {
  if (s1 == s2) {
    return false;
  } else {
    return !greaterThanString(s1, s2);
  }
}