We have a DataGrid which displays a column of read-only checkboxes, bound to a property in our ViewModel. We enabled sorting in the DataGrid and it works as expected; when you click a column's header and it sorts on that column. Click it again, and the sort is reversed, toggling each time the user clicks that same column.
The issue we're having is when a user clicks on the checkbox column, the initial sort order is Ascending which puts all the unchecked rows first whereas we want all the checked rows first. In other words, we want the initial sort order (i.e. when you first click that column) to be Descending, not Ascending.
Note: This is purely in the UI, and specifically within the DataGrid itself. It is not part of the ViewModel, so we can't change anything there.
So how can you change a column's initial sort direction?