adding templated sort of views