title: Javascript Array won't sort
body: <p>The following code won't sort any ideas?</p>
  
  <pre><code>function findLongestWord(str) {
    var splitString = str.split(" ");
    var lengths = [];
    for(var i= 0; i&lt; splitString.length; i++){
      lengths += splitString[i].length;
    }
    lengths.sort(function(a,b){return b-a;});
    return lengths;
  }
  findLongestWord("The quick brown fox jumped over the lazy dog");
  </code></pre>