title: Sort by lexicographical_compare() function
body: <p>Is there any way to sort a string using the <code>lexicographical_compare()</code> function in C++?</p>
  
  <p>I can do it by STL sort, but my question is about the <code>lexicographical_compare()</code> function.</p>