Sort of Processes in Tree