Skip to main content
replaced old msdn link with its redirect (learn.microsoft.com)
Source Link

Use ThenBy:

var orderedCustomers = Customer.OrderBy(c => c.LastName).ThenBy(c => c.FirstName) 

See MSDN: http://msdn.microsoft.com/en-us/library/bb549422.aspxhttps://learn.microsoft.com/en-us/dotnet/api/system.linq.enumerable.orderby

Use ThenBy:

var orderedCustomers = Customer.OrderBy(c => c.LastName).ThenBy(c => c.FirstName) 

See MSDN: http://msdn.microsoft.com/en-us/library/bb549422.aspx

Use ThenBy:

var orderedCustomers = Customer.OrderBy(c => c.LastName).ThenBy(c => c.FirstName) 

See MSDN: https://learn.microsoft.com/en-us/dotnet/api/system.linq.enumerable.orderby

Clarify that an ordered result is returned rather than any in-place ordering
Source Link
David Neale
  • 17.1k
  • 6
  • 64
  • 87

Use ThenBy:

Customer.OrderBy(c => c.LastName).ThenBy(c => c.FirstName)

var orderedCustomers = Customer.OrderBy(c => c.LastName).ThenBy(c => c.FirstName) 

See MSDN: http://msdn.microsoft.com/en-us/library/bb549422.aspx

Use ThenBy:

Customer.OrderBy(c => c.LastName).ThenBy(c => c.FirstName)

See MSDN: http://msdn.microsoft.com/en-us/library/bb549422.aspx

Use ThenBy:

var orderedCustomers = Customer.OrderBy(c => c.LastName).ThenBy(c => c.FirstName) 

See MSDN: http://msdn.microsoft.com/en-us/library/bb549422.aspx

deleted 2 characters in body
Source Link
David Neale
  • 17.1k
  • 6
  • 64
  • 87

Use ThenBy:

Customer.OrderBy (c => c.LastName).ThenBy (c => c.FirstName)

See MSDN: http://msdn.microsoft.com/en-us/library/bb549422.aspx

Use ThenBy:

Customer.OrderBy (c => c.LastName).ThenBy (c => c.FirstName)

See MSDN: http://msdn.microsoft.com/en-us/library/bb549422.aspx

Use ThenBy:

Customer.OrderBy(c => c.LastName).ThenBy(c => c.FirstName)

See MSDN: http://msdn.microsoft.com/en-us/library/bb549422.aspx

added 2 characters in body
Source Link
bluish
  • 27.5k
  • 28
  • 126
  • 185
Loading
deleted 361 characters in body; added 10 characters in body
Source Link
David Neale
  • 17.1k
  • 6
  • 64
  • 87
Loading
Source Link
David Neale
  • 17.1k
  • 6
  • 64
  • 87
Loading