added templating support for command line viewer
sorting support in mangle-cl