TypeError: $.fn.dataTable.moment is not a function
<p>I'm using jquery DataTable plugin and in one of my tables, I wanted to sort the result based on the date time column. So, I included moment.js version 2.13.0 and my dataTable version is 1.10.10 and my jQuery version is 1.9.1.</p>

<p>As suggested in this latest dataTable date time sorting plugin article <a href="https://datatables.net/blog/2014-12-18" rel="noreferrer">https://datatables.net/blog/2014-12-18</a>, I tried the following but in the console I have </p>

<pre><code>TypeError: $.fn.dataTable.moment is not a function
$.fn.dataTable.moment('DD-MMM-Y HH:mm:ss');
</code></pre>

<p>in my html page,</p>

<pre><code>$(document).ready(function() {
    $.fn.dataTable.moment('DD-MMM-Y HH:mm:ss');
    $('#myTable').DataTable();
} );
</code></pre>

<p>My Date column data has date in this format, <code>09-May-2016 19:38:00</code>. And I have interchanged the order in which the dataTable and moment.js plugin source is included in my html page. But I still get the same error. What could be the issue?</p>