tree sorting (in web pages)