Task list and Category sorting

I use a group by Due date sorting option which is nice as it groups the tasks by Due date. How can I sort on multiple columns? I would like to keep the group by Due date view but also sort the category and flag at the same time. To display the Important Category and Flagged items on the top of the list for each of the days.

Thank you