primefaces / primeng

The Most Complete Angular UI Component Library
https://primeng.org
Other
10.58k stars 4.61k forks source link

Incorrect Sorting in Datatable (beta13-beta14) #865

Closed codedumper closed 7 years ago

codedumper commented 8 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); });

cagataycivici commented 7 years ago

This should be fixed in recent PrimeNG release, please try with them and if issue persists drop a comment and we'll reopen.

doramcalderon commented 2 years ago

The issue persists in version 13.3.2.