Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PrimeNG] PrimeNG table is not honoring the sort column and sort order specified when groupRowsBy is added. #13773

Closed
meghashivaswamy opened this issue Sep 28, 2023 · 0 comments
Assignees
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

Comments

@meghashivaswamy
Copy link

Describe the bug

[PrimeNG] PrimeNG table is not honoring the sort column and sort order specified when groupRowsBy is added.

Steps to reproduce:

  1. in p-table have GroupRowsBy="representative.name" and sortfield as "representative.sortOrder"
  2. Login to the application and verify the table content

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".

image
image

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:

  1. in p-table have GroupRowsBy="representative.name" and sortfield as "representative.sortOrder"
  2. Login to the application

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".

image
image

Expected behavior

The rows must be sorted based on the SortField instead of 'groupRowsBy' column.

@meghashivaswamy meghashivaswamy added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Sep 28, 2023
@cetincakiroglu cetincakiroglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Dec 1, 2023
@cetincakiroglu cetincakiroglu added this to the 17.0.0 milestone Dec 1, 2023
@cetincakiroglu cetincakiroglu self-assigned this Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

3 participants