title: Kendo UI line chart sort order
body: <p>I can't work out how to get the categories ordering correctly on the x-axis in a kendo UI line chart. Here's my example:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
      &lt;title&gt;&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div id="chart"&gt;&lt;/div&gt;
      &lt;script src="js/thirdParty/jquery.js"&gt;&lt;/script&gt;
      &lt;script src="js/thirdParty/kendo.all.min.js"&gt;&lt;/script&gt;
      &lt;script&gt;
          $(function () {
              var data,
              dataSource;
          data = [{
                  type: "C1",
                  amount: 100,
                  year: 2008
              }, {
                  type: "C2",
                  amount: 120,
                  year: 2008
              }, {
                  type: "C2",
                  amount: 50,
                  year: 2009
              }, {
                  type: "C1",
                  amount: 10,
                  year: 2010
              }, {
                  type: "C1",
                  amount: 120,
                  year: 2011
              }, {
                  type: "C2",
                  amount: 50,
                  year: 2011
              }];
          dataSource = new kendo.data.DataSource({
              data: data,
              group: {field: "type"},
                  sort: { field: "year" }
          });
              $("#chart").kendoChart({
                  dataSource: dataSource,
                  series: [{
                      type: "line",
                      field: "amount",
                      categoryField: "year",
                      name: "#= group.value #"
                  }],
              })
          });
      &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>and here's a screen shot of what the output looks like:</p>
  
  <p><img src="https://i.stack.imgur.com/oBDW7.png" alt="enter image description here"></p>
  
  <p>As you can see the years are ordered incorrectly even though the data is in year order and I've specified to sort on year in the kendo data source.</p>
  
  <p>Any help would be appreciated.</p>