title: MVC jquery datatable date sorting issue
body: <p>I implemented a datatable in MVC3 c#. All working fine in local development machine including sorting of DateTime column. </p>
  
  <p>However, when i upload it to server and access the webpage, the datatable sorting does not sort correctly for DateTime column. </p>
  
  <p>Further testing, i found out that different browsers (Chrome and IE9) yield different results. </p>
  
  <p>Using DataTables debug which is available at <a href="http://debug.datatables.net/" rel="nofollow">http://debug.datatables.net/</a>, I found out that the data type is shown to be of string type instead of date type. While i run on local development environment using vs2010, the debugging result shown to be of date type which give correct sorting. </p>
  
  <p>It is strange as i uploaded the same copy of files into server and yet the result is not the same. </p>
  
  <p>Any1 encounter this problem b4? </p>
  
  <p>the following is my code:</p>
  
  <pre><code>    &lt;script type="text/javascript" src="@Url.Content("./../Content/Scripts/jquery-1.7.2.min.js")" &gt;&lt;/script&gt;
          &lt;script type="text/javascript" src="@Url.Content("./../Content/Scripts/jquery.dataTables.min.js")" &gt;&lt;/script&gt;
          &lt;script type="text/javascript" src="@Url.Content("./../Content/Scripts/jquery.jeditable.js")" &gt;&lt;/script&gt;
          &lt;script type="text/javascript" src="@Url.Content("./../Content/Scripts/jquery-ui.js")" &gt;&lt;/script&gt;
          &lt;script type="text/javascript" src="@Url.Content("./../Content/Scripts/jquery.validate.js")" &gt;&lt;/script&gt;
          &lt;script type="text/javascript" src="@Url.Content("./../Content/Scripts/jquery.DataTables.editable.js")" &gt;&lt;/script&gt;
  
          &lt;script language="JavaScript" type="text/javascript"&gt;
              $(document).ready(function () {
  
                  jQuery.fn.dataTableExt.oSort['us_date-asc'] = function (a, b) {
                      var x = new Date(a),
                      y = new Date(b);
                      return ((x &lt; y) ? -1 : ((x &gt; y) ? 1 : 0));
                  };
  
                  jQuery.fn.dataTableExt.oSort['us_date-desc'] = function (a, b) {
                      var x = new Date(a),
                      y = new Date(b);
                      return ((x &lt; y) ? 1 : ((x &gt; y) ? -1 : 0));
                  };
  
                  $('#myDataTable').dataTable({ "bJQueryUI": true,
                      "sPaginationType": "full_numbers",
  //                    aaSorting defined the column to be sorted
                      "aaSorting": [[2, "desc"]]
                  }).makeEditable({ sUpdateURL: "UpdateData",
                      "aoColumns":
                          [
                          numeric, 
                          string,
                          { "sType": "us_date"},
                          date,
                          string, 
                          string
  
                          ]
                  });
              })
  
      &lt;/script&gt;
  </code></pre>