I suggest we ...

Add stable sort for Array module

Seq.sort and List.sort are based on Microsoft.FSharp.Primitives.Basics.Array.stableSortInPlace, so there are stable sort. But Array.sort is unstable. This is confusing.
Please be public the function Array.stableSortInPlace, etc.

1 vote
Vote
Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
You have left! (?) (thinking…)
ふぇ~はぇ~ shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

1 comment

Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
Submitting...
  • Don Syme commented  ·   ·  Flag as inappropriate

    This really depends on .NET providing an efficient stable sort for arrays. It doesn't. Searching for "stable sort array c#" gives useful guides about what to do.

F# Language

Feedback and Knowledge Base