You need to sort the strings of a two-dimensional list using StringComparer.Ordinal - C #
List<List<string>> tbl = new List<List<string>>(); In case of equality of the elements of the rows in the 1st column, the sorting by the 2nd one, etc.
Example:
At the entrance:
tbl ={ { fedya, developer, html}, { Ivan, manager, html}, { Ivan, manager ,exe} { fedya, manager ,html}, } At the exit:
tbl ={ { Ivan, manager ,exe} { Ivan, manager ,html}, } { fedya, developer, html}, { fedya, manager, html},
OrderBy. Simply applyThenByfor the second, third, and so on columns. - Alexander Petrov