Function of group sorting by recent used on the left tree