Sorting on 2nd row, excluding certain columns
Starting from version 4.1 you can add sorting controls not only on the top row, but on the 2nd, the 3rd, etc. You can also set the size of the header that will define which rows do not take part in the sorting operations. Not only that, but you can also exclude certain columns from having sorting controls, as we show in the example below:
| Top 10 movies | ||||
| Order | Title | Year | Rating | Reference |
| 1 | The Shawshank Redemption | 1994 | 9.2 | Details |
| 2 | The Godfather | 1972 | 9.2 | Details |
| 3 | The Godfather: Part II | 1974 | 9.0 | Details |
| 4 | The Dark Knight | 2008 | 8.9 | Details |
| 5 | Pulp Fiction | 1994 | 8.9 | Details |
The rule we added in order to achieve this result is shown below:
As you can see we have excluded from sorting columns 1 (Order) and 5 (Reference), while we have specified the 2nd row as the one that will contain the sorting controls. On initial sorting has been specified.