Example #1
0
    private void SortWithLinq()
    {
        var rows = _table.OrderBy(row => row.Col1).Take(_countToTake);

        IterateRows(rows);
        rows = _table.OrderByDescending(row => row.Col2).Take(_countToTake);
        IterateRows(rows);
    }