code: function qsort(left, right)
      {
        var index = partition( left, right );
  
        if (left < index - 1)
        {
          qsort( left, index - 1 );
        }
  
        if (index < right)
        {
          qsort( index, right );
        }
      }
docs: Quicksort