sorted flag categories in webfrontend

Closes #375