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:

[jsdatatable tag=example-order cols=pos,title,comment head=”POS,Use this shortcode:,Note” searching=off]