diff --git a/Maui.DataGrid.Sample/Models/Team.cs b/Maui.DataGrid.Sample/Models/Team.cs index 6530bfe..70dbb70 100644 --- a/Maui.DataGrid.Sample/Models/Team.cs +++ b/Maui.DataGrid.Sample/Models/Team.cs @@ -31,8 +31,10 @@ public int CompareTo(object? obj) return resultComparison; } + var winLossIndicator = Result == Result.Won ? 1 : -1; + // If Result is the same, then compare the NumStreak - return NumStreak.CompareTo(s.NumStreak); + return winLossIndicator * NumStreak.CompareTo(s.NumStreak); } throw new ArgumentException("Object is not a Streak");