title: Sorting in angular ui-grid by specific column other than default field value
body: <p>I have a table named Job:</p>
  
  <pre><code>name    nvarchar(50)
  id  int
  description nvarchar(50)
  enabled bit
  date_modified   datetime
  user    nvarchar(50)
  </code></pre>
  
  <p>And the specific class:</p>
  
  <pre><code>public class Job {
      public int Id { get; set; }
      public string Name { get; set; }
      public string Description { get; set; }
      public bool Enabled { get; set; }
      public DateTime DateModified { get; set; }
      public string User { get; set; }
  }
  </code></pre>
  
  <p>I am using angular and typescript on my app and I have the following issue trying to display data:</p>
  
  <p>I use the ui-grid from angular type of grid and I have the following column defs:</p>
  
  <pre><code>    columnDefs: [
          {
              field: 'id',
              defaultFilter: FilterOperator.EQU,
              sort: {
  
                  direction: this.uiGridConstants.DESC,
                  priority: 0,
              },
              type: 'number'
          },
          { field: 'name', defaultFilter: FilterOperator.LIKE, sort: null },
          { field: 'description', defaultFilter: FilterOperator.LIKE, sort: null },
          { field: 'enabled', filter: { type: 'select', selectOptions: [{ value: true, label: 'True' }, { value: false, label: 'False' }] } },
          { field: 'user', defaultFilter: FilterOperator.LIKE, sort: null },
          { field: 'date_modified', type: 'date', enableFiltering: false, sort: null, cellTemplate: '&lt;div&gt;{{row.entity.dateModified | date:\'dd/MM/yyyy hh:mm:ss\'}}&lt;/div&gt;' },
          { field: 'action', enableFiltering: false, enableSorting: false, sort: null, cellTemplate: `${this.baseUrl}app/automaticAction/listActionsTemplate.html` }
      ]
  </code></pre>
  
  <p>My issue is that in order to sort the date modified column I need the field property value to be the database column (date_modified) but in order to display data I need to use the class property (dateModified). Is there a way to extend the column defs or something to specify the column I wish to sort upon?
  I am currently using an workaround with celltemplate but I don't like it.</p>