title: how to solve Highcharts error #15?
body: <p>Hello friends I'm trying to draw the chart using javascript function the data comes into JSON array format like </p>
  
  <pre><code>[[1432116687000,5100],[1432116991000,5100],[1432117291000,5100],[1432117591000,5100],[1432117894000,5100],[1432118199000,5100],[1432118499000,5100],[1432118800000,5100],[1432119100000,5100],[1432119404000,5100],[1432119648000,5100],[1432119950000,5100],[1432120250000,5100],[1432120550000,5100],[1432120850000,5100],[1432121154000,5100],[1432121154000,5100]]
  </code></pre>
  
  <p>But I'm getting an error 
  <strong>Highcharts Error #15</strong>
  <em>Highcharts expects data to be sorted</em></p>
  
  <p>This happens when you are trying to create a line series or a stock chart where the data is not sorted in ascending X order. For performance reasons, Highcharts does not sort the data, instead it is required that the implementer pre-sorts the data.
  please help me to fix it</p>
  
  <pre><code>function drawChart(data){
  
          console.log(data);
          var date = [];
          var ttc = [];
          var series = [];
          for(var i=0; i&lt;data.length; i++){
  
              //date.push(data[i][0]);
              //console.log(date);
              //ttc.push(parseInt(data[i][1]));
              //console.log(ttc);
              series.push([data[i][0],parseInt(data[i][1])]);
          } 
          //console.log(data[i][1]);
           //var series = (series);
  
   $('#container').highcharts('StockChart', {
              rangeSelector: {
              selected: 1
          },
  
          title: {
              text: 'Area Per TCC'
          },
  
           yAxis: {
              title: {
                  text: 'TTC'
              }
          },
          series: [{
              name: 'TCC',
              data: series
           }]
      });
  </code></pre>
  
  <p>} ;</p>