Lister - inside folders placement in Details view

I usually use the Details view. When sorting by name, I like the folders to be at the top of the list. When I sort by other attributes, like Date Modified, I want them at the bottom (or they could even be mixed in, according to their dates). I want the newest (or oldest) items at the top. Where do I tune that?
thanks.

You'll find something similar here:

https://resource.dopus.com/t/sort-folders-on-top-except-when-sorted-by-modified/33721

Thanks, @lxp

it's not exactly working. I'm adding my issue to that thread so please see over there. Thanks.