Skip to content
This repository has been archived by the owner on Jul 27, 2021. It is now read-only.

reset the sorting order #10

Open
kiranirabatti opened this issue Jan 7, 2019 · 1 comment
Open

reset the sorting order #10

kiranirabatti opened this issue Jan 7, 2019 · 1 comment

Comments

@kiranirabatti
Copy link

I have used mfDefaultSorter on each column to sort by the same. Now when I sorted using a column it preserves that order until I left that component, and when I come to the same component again then it shows in retested order. Now I want to reset the sorting order manually from typescript, how can I do that?? Can you please help me out on this. I have tried with mfSortBy and mfSortOrder, both are not working or I have used it in wrong way. Please help me...

@cmglez10
Copy link
Owner

You can always re-order the array [mfData] and it will be shown as you built it when component is shown for the first time.

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

No branches or pull requests

2 participants