Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Enable the use of default comparer for ToSortedCollection #949

Open
Geccoka opened this issue Sep 24, 2024 · 1 comment
Open

Comments

@Geccoka
Copy link

Geccoka commented Sep 24, 2024

Describe the functionality desired 🐞

I'd like to have the same thing implemented in #879 for the ToSortedCollection method in the library itself. For now, I created an extension method myself:

    public static IObservable<IReadOnlyCollection<TObject>> ToSortedCollection<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source)
        where TObject : notnull, IComparable<TObject>
        where TKey : notnull => source.ToSortedCollection(Comparer<TObject>.Default);

Considerations

It would be nice to have this in the library as for the SortAndBind.

@JakenVeina
Copy link
Collaborator

Feel free to submit a PR, I'd say.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants