When using view control with index values to reference to the columns the sorting is wrong.
Example: I have a JDBC query containing 3 columns ("select a, b, c from t"). The columns are referenced by using 0,1,2 as columnName and are sortable. When clicking the second column the view is sorted by the first column. It looks like the system creates "order by 1" for the second column (correct is "order by 2" in SQL).