Is there a way to apply OrderBy
on IQueryable
starting by a specific value?
Ex: I have this follow entity
Name | Age | Type |
Marcos | 15 | 1 |
Andrew | 23 | 2 |
Phelip | 18 | 2 |
Jhonny | 14 | 3 |
I've tried the following code, but it didn't work:
var result = Query.OrderBy(x => x.Type == 2);
Any Idea?