sort doc in html. Formatted code