Group files by type when using Flat View?

I have a question about "Flat View" mode. Is it possible to Group files by type when using Flat View? Thank you. In the non-Flat View mode I group files by their types so the picture files and the video files are separate and easier to see. But when I use Flat View, the option to "Group files by their types" is grayed out. I was wondering is there option in Preferences that enable this function? Thank you.

Yes, you can group in Flat View as long as you are using Flat View > Mixed or Flat View > Mixed (No Folders).