title: Why is string "11" less than string "3"?
body: <pre><code>if ('11' &lt; '3') alert('true');
  </code></pre>
  
  <p>It's obvious that it's not comparing them by length but by encoding instead. However, I don't understand how it works. I need some explanation :-)</p>