title: ngx-DataTable sort on a column not working Angular 4
body: <p>Though i'm very much new to angular, i'm facing some difficulties using ngx-DataTable. I am using simple ngx-DataTable for simple operations. The problem is on a column, sort is not working though i've declared attr as [sortable]=true. Here's code.
  Table Definition:</p>
  
  <pre><code> &lt;ngx-datatable
                  [columns]="columns"
                  [columnMode]="'force'"
                  [headerHeight]="40"
                  [footerHeight]="50"
                  [rowHeight]="'auto'"
                  [limit]="10"
                  [rows]='contacts'&gt;
  </code></pre>
  
  <p>DataTable Contains two columns and Definitions are as as follows.</p>
  
  <pre><code>    &lt;ngx-datatable-column
                          [width]="50"
                          [resizeable]="true"
                          [sortable]="true"
                          [draggable]="true"
                          [canAutoResize]="true" name="Name"&gt;
         &lt;ng-template let-row="row" ngx-datatable-cell-template&gt;
            &lt;span&gt;{{row.first_name}}&lt;/span&gt;
         &lt;/ng-template&gt;
     &lt;/ngx-datatable-column&gt;
  
      &lt;ngx-datatable-column
                          [width]="50"
                          [resizeable]="true"
                          [sortable]="true"
                          [draggable]="true"
                          [canAutoResize]="true" name="Actions"&gt;
          &lt;ng-template let-row="row" let-rowIndex="rowIndex" ngx-datatable-cell-template&gt;
        &lt;!--Template Here--&gt;
          &lt;/ng-template&gt;
     &lt;/ngx-datatable-column&gt;
  </code></pre>
  
  <p>I just want to make my name column sortable. Please help me guys. Thanks in advance.</p>