XULTreeViewRecord.setSortDirection Member

set the default sort direction. 1 is ascending, -1 is descending, 0 is no sort. setting this to 0 will not recover the natural insertion order, it will only affect newly added items.

Syntax

object.setSortDirection(dir);

Arguments

ArgumentSummary
dir

Returns

Remarks

See Also

Source Code

function xtvr_setdir (dir)
{
this._share.sortDirection = dir;
}