Hide '---' entries and fix html for grades list

Signed-off-by: JWhy <jwhy@jwhy.de>
Improve substitution sorting and improve API param

Signed-off-by: JWhy <jwhy@jwhy.de>