To me, it looks like you don't actually want BatchedJoinBlock
, because the two pieces of data always come together. A better option for that would be a BatchBlock
of Tuple<string, object>
. When you have that, you can then use LINQ directly to sort each batch:
results.OrderBy(Function(tuple) tuple.Item1)