Skip to content

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

@Geccoka

Description

@Geccoka

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions