title: Sorting List of Strings by last 2 characters
body: <p>I have a basic question on string sorting with last 2 characters of the string. Here's the list of input strings and sorted list of strings based on last 2 characters. I used MySQL query to sort. But I could not logically explain why strings are sorted in that fashion.</p>
  
  <p>Input Strings:</p>
  
  <pre><code>ksalan
  isalan
  rsalan
  bsalan
  </code></pre>
  
  <p>Sorted List:</p>
  
  <pre><code>rsalan
  isalan
  ksalan
  bsalan
  </code></pre>
  
  <p>Can anyone explain?</p>