Mixin: SortMixin

SortMixin

Methods


sortByValue( [sortByValue])

If is true or a comparator string(natural, ascending, descending), sort nodes according to their values. If sortByValue is not specified, returns the current sortByValue setting.
Parameters:
Name Type Argument Default Description
sortByValue boolean | string <optional>
false (false|natural|ascending|descending)
Source:
Returns:
Type
sortByValue | SortMixin
Example
bar.sortByValue('ascending') //sort bars in ascending order.