What Sorting Algorithm Is Used By LINQ "OrderBy"?

Posted by Mystagogue on Stack Overflow See other posts from Stack Overflow or by Mystagogue
Published on 2010-05-07T22:31:17Z Indexed on 2010/05/07 22:38 UTC
Read the original article Hit count: 518

Filed under:
|
|
|

Evidently LINQ's "OrderBy" had originally been specified as unstable, but by the time of Orca it was specified as stable. Not all documentation has been updated accordingly - consider these links:

But if LINQ's OrderBy is now "stable," then it means it is not using a quicksort (which is inherently unstable) even though some documentation (e.g. Troy's book) says it is. So my question is: if not quicksort, then what is the actual algorithm LINQ's orderBy is using?

© Stack Overflow or respective owner

Related posts about LINQ

Related posts about sorting