orderData by class
orderData by class

Hi, is it possible to use "orderData" using classes?
Cause sometimes i need to add new columns to table so i need to re-check all index again in:
orderData: [0 , 7]
I'd like to use it like this: orderData: ['colDocDate', 'colDocNumber'] but it doesn't work.
Any suggest? thanks
This discussion has been closed.
Replies
Ok I fixed using:
orderData: [ $("#table thead tr th.colDocDate").index(), $("#table thead tr th.colDocNumber").index() ]