Replies: 2 comments
-
I tried another variant, using TransformMany, but this also doesn't seem to keep the relative indices.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
You could try something like this:
you can extend it by any extension you need. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to add multiple (sorted) collections together, I managed to get this mostly working with .Or() but if any of the collections get a new item it just gets appended to the end of the composite collection, which is not what I expect or want...
Initial output is what I expect, eg:
However, if I now add a new item
_sourceList2.Add("List 2 item d");
it just ends up at the end of the collection, eg:I have tried alternatives:
and
But none of them seem to keep the correct index (though

.Merge()
seems to keep some index)See also visual example:
(red items are newly added)
Source code can be found here:
https://github.com/RoDePi/DynamicDataOrderedOr
Beta Was this translation helpful? Give feedback.
All reactions