When Outline view is sorted by some column and that sorting changes the original line order, then expansion of the tree
via right arrow expand different node from the selected one. The same is true for collapse using the left arrow.
reassigning to new component owner
might be a duplicate of #151118
I guess it was fixed in NetBeans 6.7 Beta. If I'm wrong, reopen it. Thanks