#1890714 Implement ability of sorting the templates and slightly rewrite the menu options at the same time.