move totalPoints to model so that can use sortProperties