It is a client sort, but you can disable or configure it.

*bSort*
powerTable.dtfeatures['bSort'] = True #set to False for no client sort when
you want to use orderby on DAL

*aaSorting*
If sorting is enabled, it will perform a first pass sort on initialisation.
You can define which column(s) the sort is performed upon, and the sorting
direction, with this variable. The aaSorting array should contain an array
for each column to be sorted initially containing the column's index and a
direction string ('asc' or 'desc').

powerTable.dtfeatures['aaSorting'] = [ [2,'asc'] , [3,'desc'] ]


*aaSortingFixed*
is basically identical to the aaSorting parameter, but cannot be overridden
by user interaction with the table. What this means is that you could have a
column (visible or hidden) which the sorting will always be forced on first
- any sorting after that (from the user) will then be performed as required.
This can be useful for grouping rows together.

powerTable.dtfeatures['aaSortingFixed'] = [ [0,'asc'] ]


---
So sorry, I need to fix a lot of issues and make a better documentation for
powerTable plugin.

---
Bruno Rocha
http://about.me/rochacbruno/bio

Reply via email to