working on way of rending template ordered based on session var chosen by sorting options