I have a datagrid which one column is set with a value converter. This is the code:
DataGridColumn:
<DataGridCheckBoxColumn Header="My Column" Binding="{Binding ., Converter={StaticResource MyConverter}}"/>
My Converter:
object IValueConverter.Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
//The code of the converter
}//converter
object IValueConverter.ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
The converter return a bool, so I would like to can order the rows, first which rows which colum is true or at contrary, first the rows which column has a false value.
But it does not allow to order by this column.
I am using MVVM pattern, so if it possible, I would like to use a solution that respect this.
How could I order the rows by this column?
Thanks.

