Closed codedumper closed 7 years ago
Sorting function in datatable is not correct :
It probably works correctly for English people but not for other country. Sorting in angular (RC5) is working fine using localCompare on string.
Temporary workaround is to externalize sorting using compare function : myArray.sort(function (a, b) { return a.name.localeCompare(b.name); });
This should be fixed in recent PrimeNG release, please try with them and if issue persists drop a comment and we'll reopen.
The issue persists in version 13.3.2.
Sorting function in datatable is not correct :
It probably works correctly for English people but not for other country. Sorting in angular (RC5) is working fine using localCompare on string.
Temporary workaround is to externalize sorting using compare function : myArray.sort(function (a, b) { return a.name.localeCompare(b.name); });