title: create own sort() function in javascript
body: <p>I want to create my own sort() function on an array in javascript. The function should expect the following string elements in the list <code>[0-9]*[A-Z][0-9]*[A-Z][0-9]*</code> That means first there are arbitrary number of numbers 0-9, then there is One letter, followed by arbitrary numbers 0-9, then One Letter and then finally arbitrary numbers 0-9. Now I want to sort this list, but I want to sort it backwards on the Letters Only. That means that for example <code>[xExCx,xQxEx,xSxEx,xSxFx]</code> will become after its sorted <code>[xSxFx,xSxEx,xQxEx,xExCx]</code> where again x is an arbitrary number of numbers 0-9. It will sort on the first letter (backwards) first and then the second letter. So that letter E comes before an A. Perhaps anyone of you brilliant guys could give me a push in the right direction, I have only gotten this far.</p>
  
  <pre><code>function sortList(listOfNames) {
     var sortedListOfNames=new Array();
     for (i = 0; i &lt; listOfNames.length; i++) { 
     //Sort listOfNames
     }
  }
  </code></pre>