You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm unclear on whether Sort(By) is a stable sort or not. The code docs say the code is a modified version of https://golang.org/pkg/sort/#Sort — which is not stable. Is that still the case in this modified version? (Would be great to document this either way.)
If so, would it be possible to add stable versions of Sort and SortBy. The latter would be particularly helpful since the sort.Interface can't be code-gen'ed automatically for types that aren't naturally comparable.
Thanks!
The text was updated successfully, but these errors were encountered:
Hi folks,
Great work on gen — it's very useful.
I'm unclear on whether
Sort(By)
is a stable sort or not. The code docs say the code is a modified version of https://golang.org/pkg/sort/#Sort — which is not stable. Is that still the case in this modified version? (Would be great to document this either way.)If so, would it be possible to add stable versions of
Sort
andSortBy
. The latter would be particularly helpful since thesort.Interface
can't be code-gen'ed automatically for types that aren't naturally comparable.Thanks!
The text was updated successfully, but these errors were encountered: