title: Datatable: date / time sorting plug-in not ordering
body: <p>I have a basic SpringBoot app., embedded Tomcat, Thymeleaf template engine
  I want to order 1 date column of a datatable. </p>
  
  <p>in my POJO:</p>
  
  <pre><code>public String getTimeFormatted() {
  DateTimeFormatter formatter = 
              DateTimeFormatter.ofPattern("EEEE, MMMM d,yyyy h:mm,a", Locale.ENGLISH);
          LocalDateTime dateTime = LocalDateTime.ofEpochSecond(time, 0, ZoneOffset.UTC);      
          return dateTime.format(formatter);
      }
  </code></pre>
  
  <p>in the template:</p>
  
  <pre><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.8.4/moment.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://cdn.datatables.net/plug-ins/1.10.15/sorting/datetime-moment.js"&gt;&lt;/script&gt;
  
  &lt;script th:inline="javascript"&gt;
  $(document).ready(function() {
  
      $.fn.dataTable.moment( 'EEEE, MMMM d,yyyy h:mm,a' );
  
      $('#table').dataTable( {  
          "bLengthChange": false,
          "pageLength": 25,
      }); 
  } );
  &lt;/script&gt;
  </code></pre>
  
  <p>but it does not order properly
  <a href="https://i.stack.imgur.com/6aF7w.png" rel="noreferrer"><img src="https://i.stack.imgur.com/6aF7w.png" alt="enter image description here"></a></p>