title: Cannot read property aDataSort . DataTable bootstrap
body: <p>I just start to learn about <code>bootstrap</code> and creating a simple project that can show a data into <code>DataTable</code> but I am having this error <code>Cannot read property aDataSort of undefined</code></p>
  
  <p><em>Feel Free to edit my code if i got it wrong</em></p>
  
  <p>These are my code</p>
  
  <p><strong>JS</strong></p>
  
  <pre><code>var globalPersonId = 1;
  var dataTablesOrderedList = "";
  $(document).ready(function () {
  
      var dataTablesFirstBS = $('#dataTables-FIrstSample').DataTable({
          responsive: true,
          processing: true,
          info: true,
          search: true,
          sort: false,
          stateSave: true,
          order: [[1, "asc"], [2, "asc"]],
          lengthMenu: [[50, 100, 200, -1], [50, 100, 200, "All"]],
          ajax: { "url": "/BS/GetFirstDataTable" },
          columns:
          [
              { data: "BSId", title: "", visible: false, searchable: false, sortable: false },
              { data: "Name", title: "Name", sClass: "alignCenter", sortable: false }
          ]
      });
  
  MyFirstBS();
      function MyFirstBS() {
  
          dataTablesOrderedList = $('#tblMyFirstBS').DataTable({
              responsive: true,
              processing: true,
              info: true,
              retrieve: true,
              destroy: true,
              search: true,
              sort: false,
              stateSave: true,
              lengthMenu: [[5, 10, 20, -1], [5, 10, 20, "All"]],
              ajax: {
                  "url": "/BS/GetFirstDataTable",
                  "data": function (d) {
                      d.BSId = globalPersonId;
                  }
              },
              columns:
          [
              { data: "BSId", title: "", visible: false, searchable: false, sortable: false },
              { data: "Name", title: "Name",  searchable: false, sortable: false }
          ]
          });
      }
  
  
  });
  </code></pre>
  
  <p><strong>Controller</strong></p>
  
  <pre><code> public JsonResult GetFirstDataTable()
      {
  
          var Data = new List&lt;object&gt;();
  
          Data = db.FirstBS.Where(x =&gt; x.BSId == x.BSId)
          .Select(t =&gt;
              new
              {
                  BSId = t.BSId,
                  Name = t.Name
              }).ToList&lt;object&gt;();
          return gf.DataTableAjaxHandlerClientSide(Data);
      }
  </code></pre>