rem: if ("_treeView" in this && "outliner" in this._treeView) 
add: if ("_treeView" in this && "tree" in this._treeView) 
context: function torr_resort (){    if ("_treeView" in this && this._treeView.frozen) {        this._treeView.needsResort = true;        return;    }        if (!("childData" in this) || this.childData.length < 1 ||        (this.childData[0].sortCompare == tovr_sortcmp &&         !("sortColumn" in this._share) || this._share.sortDirection == 0))    {        /* if we have no children, or we have the default sort compare but we're         * missing a sort flag, then just exit */        return;    }        this.childData.sort(this.childData[0].sortCompare);        for (var i = 0; i < this.childData.length; ++i)    {        this.childData[i].childIndex = i;        if ("isContainerOpen" in this.childData[i] &&            this.childData[i].isContainerOpen)            this.childData[i].resort(true);        else            this.childData[i].sortIsInvalid = true;    }        if ("_treeView" in this && "outliner" in this._treeView)    {        /*        dd ("root node: invalidating 0 - " + this.visualFootprint +            " for sort");        */        this.invalidateCache();        this._treeView.outliner.invalidateRange (0, this.visualFootprint);    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/07d96867f11683becf5e1a6ca5e64e6a9324c957/tree-utils.js/buggy/extensions/venkman/resources/content/tree-utils.js