LINQ式をソートする方法を教えてください。
私は次のものを持っています:
.OrderByDescending(item => item.RowKey)
.Select((t, index) => new City.Grid()
{
PartitionKey = t.PartitionKey,
RowKey = t.RowKey,
Row = index + 1,
ShortTitle = t.ShortTitle,
})
私がやりたいことは、次のソートを行うことです。
1) 最初の 4 文字またはフィールドの RowKey
2) ShortTitle
ほんの数文字で並べ替えを行う方法がわかりません。また、二次並べ替えを行う方法もわかりません。