Skip to content

Conversation

@Diiegoav
Copy link
Contributor

@Diiegoav Diiegoav commented Aug 25, 2022

Related Issue

#585 Multiple Sorting

Description

  • Removed single sorting, to apply multi column sorting, based on maxColumnSortProp.
  • Added new initialOrderCollection to specify an initial multi column sort.
  • Added new showColumnSortOrder & sortOrderIndicatorStyle, for show the order indicator of clicked column, and be able to styled it need it.
  • Allow the user to still use columns.options.customSort.
  • Kept the current columns.option.sorting flag to turn on/off any column from sorting.
  • Deprecated options.sorting, query.orderBy, query.orderDirection and onOrderChange.

Works on normal, tree and group table, for group table groups child data only supports single sort.

Related PRs

None

Impacted Areas in Application

List general components of the application that this PR will affect:

* src/material-table.js
* src/utils/data-manager.js
* src/components/MTableHeader/index.js

Additional Notes

Please review the pr, let me know your thoughts, and if there is any feedback let me know to update the pr, I think this multicolumn sort could be a great contribution for all the community that uses material table :)

@Diiegoav Diiegoav requested review from Domino987 and removed request for matthewoestreich September 1, 2022 21:33
@Domino987 Domino987 merged commit f3f6766 into material-table-core:experimental Sep 6, 2022
@Diiegoav Diiegoav deleted the feature/multi-sort branch September 21, 2022 19:26
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.

3 participants