Filter on Boolean column in Multiple selection drop down data grid

Hi team,

I have Multiple selection drop down data grid, which has 5 columns. The first column is boolean and is displayed as checkbox. The rest 4 columns are string. I have set AllowFiltering="true" and AllowFilteringByAllStringColumns="true".
Now after selecting multiple rows, I want that the selected rows should we sorted at the top or I can filter them as selected rows.

Can you please suggest a way by which I can implement this sorting or filter on this boolean column.

Thanks

Check filtering and sorting API for reference: