How to Group and Sort a report using parameters?

How to Group and Sort a report using parameters?

I have a page with a report on it. In the report I am using Grouping and Sorting from the Report options. My question is if there is any way to pass this 'Grouping and Sorting options' as parameters in the links.

To make it clear, if there is any way to make Group and Sorting using parameters in the link (and not from the report options)?