title: Bubble sort algorithm JavaScript
body: <p>Please can you tell me what is wrong to this implementation of bubble sort algorithm in JavaScript?</p>
  
  <pre><code>for (var i=1; i&lt;records.length; i++){
          for (var j=records.length; j&lt;1; j--){
              if (parseInt(records[i-1]) &lt; parseInt(records[i])){
                  var temp = records[i-1];
                  records[i-1] = records[i]
                  records[i] = temp;
              }   
          }    
      }
  </code></pre>