primeng table multiple sort wrong demo code

Open Beginner friendly
#18,985 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Active
Tech stack
angular, typescript

Research direction

Start with the multiple-columns-sort demo at https://primeng.org/table#multiple-columns-sort and its linked StackBlitz entry point. Check the demo class name and the table configuration, then verify that both examples compile and demonstrate multiple-column sorting. Done means the documentation and StackBlitz code use the correct demo class and enable sortMode="multiple".

Written by the indexing model from the issue text.

Description

Resolution: Stale Status: Needs Triage
Describe the bug

primeng table multiple sort (https://primeng.org/table#multiple-columns-sort) shows wrong demo code in both direct documentation site and in stackblitz (https://stackblitz.com/run?file=components%2Flayout%2Fapp.component.html), the class is exported as TableSingleColumnsSortDemo which is wrong and sortMode="multiple" is not set.

Pull Request Link

No response

Reason for not contributing a PR
  • Lack of time
  • Unsure how to implement the fix/feature
  • Difficulty understanding the codebase
  • Other
Other Reason

Documentation issue

Reproducer

https://stackblitz.com/run?file=components%2Flayout%2Fapp.component.html

Environment

Documentation issue

Angular version

20

PrimeNG version

v20

Node version

No response

Browser(s)

No response

Steps to reproduce the behavior

Documentation issue at

Expected behavior

The code at https://primeng.org/table#multiple-columns-sort and https://stackblitz.com/run?file=components%2Flayout%2Fapp.component.html should compile and work.

Dominant language
TypeScript
Stars
12.5k
Forks
5.1k
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from primefaces/primeng

All issues in primefaces/primeng

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.