Working on sorting collection by session var, commented out some templating for now