If you have the argument “orderby” in use, you can explicit define, how to order this columns (“descending or ascending“). To make use of the “order“-argument, be sure that it requires  the existence of an “orderby“-argument (as a basement), on which the “order“-argument refers to.

Syntax

[jsdatatable cat=YourCategory cols=YourColumn1,YourColumn2,YourColumn3 orderby=YourColumn3,YourColumn2 order=asc,dsc]

EXAMPLE:

[jsdatatable cat=YourCategory cols=ZIP,City,Street,lastname,firstname,Street orderby=City,lastname,firstname order=dsc,asc,dsc]

Notes

The “order“-argument refers directly to the “orderby“-argument! Therefore please use the same sequence!


ORDER ⇒ Some live examples

Please click on the links below and check out the difference:

POSUse this shortcode:Note
02jsdatatable CAT=all COLS=Model,Year,Manufacturer,Vehicle ORDERBY=Year,Model ORDER=dsc,ascreverse ordering for the column Year
01jsdatatable CAT=all COLS=Model,Year,Manufacturer,Vehicle ORDERBY=Year,Model ORDER=asc,ascorder the listing by year and vehicle