Default sort order in QTableView when used with QSortFilterProxyModel
<p>I'm using a custom QSortFilterProxyModel to sort and filter a custom QAbstractTableModel which is displayed in a QTableView.</p>

<p>I've set up sorting and filtering and everything works as expected.</p>

<p>Now I'd like some columns sorted by default ascending and some descending.
With "by default" I mean if the column header is clicked the first time this should be the default sort order (and as I've said it differs from column to column).</p>

<p>I could do this by implementing it in my custom QAbstractTableModel depending on the column but then the sort indicator which is shown in the column header wouldn't match the sort order for some columns.</p>

<p>I guess that setting the default sort order should be probably done in QTableView but I didn't find out how.</p>

<p>Any help would be much appreciated.</p>