Skip to content

[Bug]: SortAndVirtualize does not update collection when comparer stream emits new values #996

Description

@datskiy

Describe the bug 🐞

When using the SortAndVirtualize method with a comparer stream, the collection does not appear to update or re-sort when the comparer stream emits a new comparer.

Step to reproduce

  1. Run the project: https://github.com/datskiy/ComparerStreamIssue
  2. Check the Debug Window and observe that the comparer stream from the GetComparerStream() method emits new values every 5 seconds.
  3. Check the Console Window to see the current collection.
  4. Observe that collection does not change, despite new comparers. The sorting remains the same.

Reproduction repository

https://github.com/datskiy/ComparerStreamIssue

Expected behavior

When GetComparerStream() emits a new comparer, I expect the resulting virtualized collection to re-sort accordingly.

Screenshots 🖼️

No response

IDE

Visual Studio 2022

Operating system

Windows

Version

24H2 (26100.2894)

Device

PC

DynamicData Version

9.2.1

Additional information ℹ️

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions