added sorting function to PlayerView and Player