w2sidebar.sort

Sorts sidebar nodes
sort([options], [nodes])
options object, options for sort
nodes array (optional), array of nodes to start with
Returns undefined.

Description

This method will sort nodes of the sidebar preserving parent/child realtionship. You can suply sort options, but if you do not the default options are:
If you have sidebar defined in the following way: You can:

User Comments

comments powered by Disqus