Self-containing DataTable classes for the datatables.net jQuery plugin that manage rendering, querying, filtering, sorting and other desireable tasks for the user.
The definition of DataTablesColumn opens the possibility to add a "default" sorting order by changing OrderingIndex and OrderingCaseInsensitive. But those options are not parsed in the initial request. Therefore the request is build upon the table which has the default option "order by first column ascending". The options should be inside the script to avoid this, shouldn't they?
Reproduction:
Build a table
Define a ordering not to first column
Access the site and you will see that default ordering is still on first column
Isn't it possible to set a real expression, which is directly parsed as OrderBy? With this feature it would be possible to set more complex ordering logic.