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

DataTable sortField breaks sorting (beta 4) #299

Closed
gatapia opened this issue May 2, 2016 · 1 comment
Closed

DataTable sortField breaks sorting (beta 4) #299

gatapia opened this issue May 2, 2016 · 1 comment
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@gatapia
Copy link
Contributor

gatapia commented May 2, 2016

The following sorting works as expected:

<p-datatable [value]="data">
  <p-column field="Field1" header="Field" [sortable]="true"></p-column>
</p-datatable>

However sorting is broken when a default sort is set; i.e.:

<p-datatable [value]="data" sortField="Field1">
  <p-column field="Field1" header="Field" [sortable]="true"></p-column>
</p-datatable>
@cagataycivici cagataycivici added the Status: Pending Review Issue or pull request is being reviewed by Core Team label May 4, 2016
@cagataycivici cagataycivici added this to the 1.0.0-beta.5 milestone May 4, 2016
@cagataycivici cagataycivici self-assigned this May 4, 2016
@cagataycivici cagataycivici added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Pending Review Issue or pull request is being reviewed by Core Team labels May 5, 2016
@cagataycivici
Copy link
Member

Added default sortOrder as asc to fix this. Thank you.

atretyak1985 added a commit to Nanitor/primeng that referenced this issue Jul 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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

2 participants