Sort And Filter Custom Cgridview Columns

In this excellent wiki, Joblo shows a couple of ways to build custom/complex CGridView columns.

However it appears that, if the data of these columns are not included in the dataprovider, they cannot be sorted and filtered.

Will Yii 2 allow us to sort and filter custom/complex/lazy-loaded columns i.e. an easy way to include virtual attributes into the dataprovider?

Regards