title: DataTables - Ignore empty moment date values when sorting
body: <p>I'm using DataTables and trying to ignore empty values on a date column which is based MomentJs when sorting. </p>
  
  <p>e.g: <code>08 Nov 2016 09:47 pm</code></p>
  
  <p><a href="http://codepen.io/anon/pen/qqbWVa?editors=1010" rel="nofollow noreferrer">http://codepen.io/anon/pen/qqbWVa?editors=1010</a></p>
  
  <p>Currently I have this and it sorts the values as expected but it also contains the empty cells. </p>
  
  <pre><code>$.fn.dataTable.moment('DD MMM YYYY hh:mm a');
  $('.table-data').DataTable();
  </code></pre>
  
  <p>I've tried the following custom sorting method which was originally posted here <a href="https://datatables.net/forums/discussion/1178/sorting-dates-handling-null-values" rel="nofollow noreferrer">https://datatables.net/forums/discussion/1178/sorting-dates-handling-null-values</a></p>
  
  <pre><code>jQuery.extend(jQuery.fn.dataTableExt.oSort, {
      'date-asc': function (a, b) {
        var x = Date.parse(a);
        var y = Date.parse(b);
        if (x == y) { return 0; }
        if (isNaN(x) || x &lt; y) { return 1; }
        if (isNaN(y) || x &gt; y) { return -1; }
      },
      'date-desc': function (a, b) {
        var x = Date.parse(a);
        var y = Date.parse(b);
        if (x == y) { return 0; }
        if (isNaN(y) || x &lt; y) { return -1; }
        if (isNaN(x) || x &gt; y) { return 1; }
      }
  });
  
  $('.table-data').DataTable({
      columnDefs: [
        { type: 'date', targets: -1 }
      ]
  });
  </code></pre>
  
  <p>But it seems no difference. I would really appreciate if you could help sort this issue. </p>
  
  <p><strong>Update</strong>
  I want to move the empty valued row to the last so it won't be visible at the first place. Something like this 
  <a href="http://jsfiddle.net/dnsL2oc4/2/" rel="nofollow noreferrer">http://jsfiddle.net/dnsL2oc4/2/</a></p>