You can use Mongoose's virtuals support for this:
scoreSchema.virtual('splitScores').get(function() { return this.scores.split(",").sort();});
With that in place, any score document instance will have a splitScores
property that's the sorted array version of scores
.