Hi,

As you know there is method in both QAbstractProxyModel & QAbstractItemModel classes. What I want to know is - what is the first parameter of the sort method. For example;

Qt Code:
  1. myFilterModel->sort(0, Qt::AscendingOrder);
To copy to clipboard, switch view to plain text mode 

0 refers to column here but according to what? I mean I have custom objects in my data model with various members/fields. How '0' in the sort method associated with my highlighted custom object's field?