sort tree view of program