components icon indicating copy to clipboard operation
components copied to clipboard

feat(components/sort): add multi-sort support

Open imerljak opened this issue 5 months ago • 3 comments

Adds multi-column sorting capability to MatSort, allowing to sort a table on multiple of its columns at once by toggling matSortMultiple.

This feature adds a new sortState variable inside MatSort that should be used as a source of truth when matSortMultiple is enabled. Fixes #24102

imerljak avatar Jan 21 '24 02:01 imerljak

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

google-cla[bot] avatar Jan 21 '24 02:01 google-cla[bot]

@imerljak when in multi-sort will this also persist the visibility of the sort arrows when multiple columns are sorted?

ricovivid avatar Feb 20 '24 21:02 ricovivid

@imerljak when in multi-sort will this also persist the visibility of the sort arrows when multiple columns are sorted?

You mean the visual feedback at the table header? Yep. If two cols are sorted they will render the header accordingly.

imerljak avatar Feb 20 '24 22:02 imerljak

Just poking in to say that this is a great idea 👌 Thank you @imerljak and angular team!

dsab123 avatar Mar 25 '24 15:03 dsab123