So, to clarify, you have a table that includes:
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 so, then you are looking at "orderby, thenby", which in LINQ, it seems to me, is indicated by a comma in this part of the LINQ statement:
orderby user.Name, user.Role
Is this what you are looking for?
source share