title: How to sort a string array by numeric style?
body: <p>I have a filenames array, I want to sort it by numeric style, please give to me a solution.  </p>
  
  <p><strong>Example1:</strong></p>
  
  <p>Original array: <code>[name99.txt, name98.txt, name100.txt]</code><br>
  Sorted array: <code>[name98.txt, name99.txt, name100.txt]</code><br>
  (Using string sorting, result of sorting is <code>[name100.txt, name98.txt, name99.txt]</code>)</p>
  
  <p><strong>Example2:</strong></p>
  
  <p>Original array: <code>[a99.txt, b98.txt, b100.txt]</code><br>
  Sorted array: <code>[a99.txt, b98.txt, b100.txt]</code><br>
  (Using string sorting, result of sorting is <code>[a99.txt, b100.txt, b99.txt]</code>)</p>