On a certain ordering of the vertices of a tree