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 Column sortField is ignored #653

Closed
acrimi opened this issue Nov 28, 2018 · 0 comments
Closed

DataTable Column sortField is ignored #653

acrimi opened this issue Nov 28, 2018 · 0 comments
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@acrimi
Copy link

acrimi commented Nov 28, 2018

I'm submitting a ... (check one with "x")

[x] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://forum.primefaces.org/viewforum.php?f=57

Plunkr Case (Bug Reports)
https://plnkr.co/edit/I2F0uj?p=preview

Current behavior
The sortField property of Column is ignored in DataTable, sorting is always done according to the value of 'field'

Expected behavior
Sorting should be done by the value of sortField when provided

Minimal reproduction of the problem with instructions
In the plunker, clicking the Sortable Field column should sort the rows in ascending order as Little, Medium, Big (and reverse for descending) according to their numericValue values which are 1, 500, 1000 respectively. Instead the rows are still sorted alphabetically Big, Little, Medium and sortField is ignored.

  • React version:
    16.6.0

  • PrimeReact version:
    2.0.0-rc.1

  • Browser:
    all

  • Language:
    all

@Merve7 Merve7 self-assigned this Nov 28, 2018
@Merve7 Merve7 added the Type: Bug Issue contains a defect related to a specific component. label Nov 28, 2018
@Merve7 Merve7 added this to the 2.0.0-rc.1 milestone Nov 28, 2018
@Merve7 Merve7 closed this as completed in a76e5f8 Nov 28, 2018
@Merve7 Merve7 modified the milestones: 2.0.0-rc.1, 2.0.0 Nov 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

No branches or pull requests

2 participants