make character types expandable, align styling, sort environment contents