add sort method to survey template model