From anonymous, 10 Months ago, written in C++.
Embed
  1. std::string const one{"Ab"};
  2. std::string const two{"aa"};
  3. bool const result = std::lexicographical_compare(one.cbegin(), one.cend(), two.cbegin(), two.cend());
  4. ASSERT_EQUAL(false, result);   // fails