score:1

So, just to clarify, you have a table which includes essentially:

Name : Role
--------------
Bob : leader
Jane : scribe
Bob : technician
Bob : programmer
Jane : entity
Bob : adept

and you want to end up with:

Bob : adept
Bob : leader
Bob : programmer
Bob : technician
Jane : entity
Jane : scribe

If that's the case, then you're looking at an "orderby, thenby", which in LINQ I believe is indicated by a comma in that part of the LINQ statement:

orderby user.Name, user.Role

Is that what you're looking for?


Related Articles