DataTable sortField attribute cause Exception on 1.1.1+
I'm submitting a ... (check one with "x")
[x] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35
``
**Current behavior**
DataTable do not work with primeng 1.1.1+ but is fine with 1.1.0.
Below is the exception
TypeError: Cannot read property 'find' of undefined at DataTable.ngDoCheck (datatable.js:285)
* **Angular version:** 2.0.X
I'm running Angular 2.4.2 (the issue is there also with 2.4.0 and 2.4.1)
* **PrimeNG version:** 2.0.X
1.1.1, 1.1.2, 1.1.3, 1.1.4
Is it possible to provide a plunkr?
i have the same bug.
if i use sortfield => "Cannot read property 'find' of undefined at DataTable.ngDoCheck" if i use NO sortfield => "its run"
Sorry, I am not used to plunkr, so below is a small code snippet
<p-dataTable [value]="model.list" selectionMode="multiple"[(selection)]="selectedContactPersons" sortField="firstNameAndLastName" [sortOrder]="1">
<p-column field="firstNameAndLastName" header="myHeader" [sortable]="true">
</p-dataTable>
Similar issue with multisort has been reported with a plunker, but it hasn't beenreviewed by any primeng team member.
https://github.com/primefaces/primeng/issues/1663
thx