Grouping messages in the view + sorting messages by tags

I would like to know how can group the messages in the view ?
My point is that currently each message in the same topic is a separate line and I would like them to be grouped in one as a drop-down list.

Adds the current view. You can see that the messages are from the same sender in the same subject and the same tag is pinned. How to make them collapsed and grouped?


Additionally, I have created tags and folders. How to make it automatically sort the appropriate message with a tag into the appropriate folder?
Tag 3-Klimaszewski to folder 3-Klimaszewski for example.