sorking on data tree -- in progress