E
Ethan Strauss
Hi,
What is the difference between List<T>.Sort() and List<T>OrderBy()?
They seem to do essentially the same thing with different syntax. I know
that they have different signatures and Sort sorts the present list while
OrderBy returns a new list, but it seems that the actual sorting is really
the same. Is there any significant difference? Would either one be prefered?
Thanks,
Ethan
What is the difference between List<T>.Sort() and List<T>OrderBy()?
They seem to do essentially the same thing with different syntax. I know
that they have different signatures and Sort sorts the present list while
OrderBy returns a new list, but it seems that the actual sorting is really
the same. Is there any significant difference? Would either one be prefered?
Thanks,
Ethan