Once the user select the header/column name on table view, for example, then the list is sorted by asc/dec, but the grouping is going to be lost, in case we set the view to be grouped by a certain field(s) by default.
To get the grouping back, we need to go to other view and re-visit the same view.
To make the grouping back and revive without visiting other view, to set the action of LINKTOVIEW() to go back to the exactly same view. Then it gets the grouping back and up running.
This is not perfect though, as App is remembering the route changes accordingly, meaning we need to hit the return button multiple times to trace back to the previous views though.