It only supports 'Order By' clause with 'ascending' and 'descending' sorting ...
I think something like this will fit the bill. Try it out: // Here, I construct a simple table for demonstration var table = new DataTable(); var column ...
LINQ query syntax supports multiple sorting fields seperated by comma ...
new[] { new { Y = a }, new { Y = b }, new { Y = c } }; var ordered = data.
It only supports 'Order By' clause with 'ascending' and 'descending' sorting direction.
list.OrderBy(x => x.att1).ThenByDescending(x => x.att2);. Could be ThenByAscending . Using a lambda in this situation would be cleaner to ...
OrderBy(s => s.
but let's get the items in descending (from largest to smallest/from Z to A) order:
Easy-to-use and high performance dynamic sorting of most type of sequences with SQL-like syntax, developed using System.Linq.Expression classes.
think we can just comma separate between columns, if we need more than one c.