[PrimeNG] PrimeNG table is not honoring the sort column and sort order specified when groupRowsBy is added. #13773
Labels
LTS-FIXED-15.4.14
LTS-PORTABLE
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
[PrimeNG] PrimeNG table is not honoring the sort column and sort order specified when groupRowsBy is added.
Steps to reproduce:
Expected Result: The data in the table must be sorted based on the "representative.sortOrder".
Actual result: The data in the table must be sorted based on the "representative.name".
Environment
"primeng": "16.0.2"
https://stackblitz.com/edit/lwfasm?file=src%2Fapp%2Fdemo%2Ftable-rowspan-grouping-demo.html,src%2Fdomain%2Fcustomer.ts
Reproducer
https://stackblitz.com/edit/lwfasm?file=src%2Fapp%2Fdemo%2Ftable-rowspan-grouping-demo.html,src%2Fdomain%2Fcustomer.ts
Angular version
v16.0 [Exact version not noted]
PrimeNG version
16.0.2
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
v16.16. 0 [Exact version not noted]
Browser(s)
Chrome
Steps to reproduce the behavior
Steps to reproduce:
Expected Result: The data in the table must be sorted based on the "representative.sortOrder".
Actual result: The data in the table must be sorted based on the "representative.name".
Expected behavior
The rows must be sorted based on the SortField instead of 'groupRowsBy' column.
The text was updated successfully, but these errors were encountered: