I have this issue in a Yii2 project and would appreciate some help.
I’ve got a table Article, it has a relation with table Stock so some articles are in stock and some don’t.
The customer wants to get sorted searches, but he needs the articles with stock to show first.
So all Articles with stock should appear first in the datagrid, sorted by description (or whatever order the user sorts them). Then, in the same datagrid, all Articles without any available stock would show next, again sorted.
Is there any way to build a dataProvider to feed the datagrid from both lists?