Added player state sorting before transforming into public view object.