I need a way to trigger a callback function any time a user sorts files. There are 2 ways for users to sort: 1) e.g. Context menu > Sort By > Name, and 2) Click a column header in the File Details grid.
I can detect the first type by using the onMenuClick event. However, I haven't been able to detect event type #2, when a user clicks a header to sort.
I see that there are event constants defined for sortColumn and sortByChange. I've tried grabbing a ViewChild of the component and calling addEventListener(sortColumn, handler) on it (which it inherits from ComponentBase), but this didn't work.
Your guidance please!