title: Sorting p-dataTable not working when p-column uses ng-template
body: <p>I'm trying to sort a column that has template. My understing is that when a column uses a template, the sorting should be done by responding to the sorting event.</p>
  
  <pre><code>&lt;p-column field="activityName" [sortable]="true" (onSort)="onNameSorting($event)"&gt;
    &lt;ng-template let-col let-activity="rowData" pTemplate="body"&gt;
     //..
    &lt;/ng-template&gt;
  &lt;/p-column&gt;
  </code></pre>
  
  <p>However, when I put a breakpoint in the event handler, nothing is happening. Am I missing something?</p>
  
  <pre><code>onNameSorting(e){
    debugger;       //--&gt; the breakpoint is not being hit
    //...
  }
  </code></pre>
  
  <p>Thanks for helping</p>
  
  <h1>Edit</h1>
  
  <p>The breakpoint is being hit, the sorting is being performed. Yet no change is being reflected in the <em>dataTable</em>.</p>
  
  <pre><code>onNameSorting(e, dt){
    debugger;              //This break point is being hit now.
    if(!!e.order &amp;&amp; e.order &gt; 0){
       this.filteredItems = this.filteredItems
          .sort((a, b) =&gt; (a.activityName &lt; b.activityName) ? -1 : 1);
    }else{
       this.filteredItems = this.filteredItems
          .sort((a, b) =&gt; (a.activityName &gt; b.activityName) ? -1 : 1);
    }
  }
  </code></pre>