C# C# Streams and Data Processing Serialization Serializing to a File

Michal Slotwinski
Michal Slotwinski
10,002 Points

Is this legit ?

Well I would never figured it out the way instructor did but i have simply swapped x with y.

namespace SoccerStats
{
    public class PlayerComparer : IComparer<Player>
    {
        public int Compare(Player x, Player y)
        {
            return y.PointsPerGame.CompareTo(x.PointsPerGame);         
        }
    }
} 

is this an ok solution ?