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

Fix primefaces#2514: Fix sortFunction ignored on initial sort #3060

Merged
merged 2 commits into from
Jul 13, 2022

Conversation

emilytoy
Copy link
Contributor

If sortField is specified, determine and set columnSortable and columnSortFunction refs when processing data. Otherwise, the refs are false and undefined, which results in the sortFunction not being run initially.

###Defect Fixes
#2514

…umnSortable and columnSortFunction refs when processing data. Otherwise, the refs are false and undefined, which results in the sortFunction not being run initially.
components/lib/datatable/DataTable.js Outdated Show resolved Hide resolved
@melloware melloware linked an issue Jul 13, 2022 that may be closed by this pull request
@melloware melloware merged commit 2718dae into primefaces:master Jul 13, 2022
@melloware
Copy link
Member

Thanks for the fix I had been looking at this one too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DataTable ignores sortFunction and sortField for initial sorting DataTable: ignores sortFunction
2 participants