title: Javascript Alphanumeric String Comparison
body: <p>I have a list of string 'X1','X2','X3','S1','S2','S3',etc. I want to do the following comparison</p>
  
  <pre><code>var string = INPUT STRING;
  if( string &gt; 'X10' ){
      DO THIS
  }else{
      DO THAT
  }
  </code></pre>
  
  <p>In this case, if the input string is 'X8' then my code is returning X8 IS GREATER than X10. If there a way I can truly get X10 > X8?</p>