Skip to content

Commit

Permalink
InputRoll: fix comparing of cells with null column names
Browse files Browse the repository at this point in the history
  • Loading branch information
SuuperW committed Jan 15, 2021
1 parent 764f4ad commit 26fb9b9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ int IComparer<Cell>.Compare(Cell c1, Cell c2)
{
int row = c1.RowIndex.Value.CompareTo(c2.RowIndex.Value);
return row == 0
? c1.Column.Name.CompareTo(c2.Column.Name)
? string.Compare(c1.Column?.Name, c2.Column?.Name)
: row;
}

Expand Down

0 comments on commit 26fb9b9

Please sign in to comment.