Add hierachical sorting and CSS.