I have a 2 streams of data both of which contain date information.
I get 10 items from the first which is a SQL database and 10 items from the second which is a Twitter feed.
When a request comes in to get more data it then retrieves the next 10 items from each source.
The problem I have spotted is that second set of 10 items from the database source may have newer items than the first 10 from Twitter so you have data that looks like this
DB - Today
DB- Today \\1st result set
Twitter - Yesterday
Twiter - Yesterday
\\\\\\\\\\\\\\\\\\\\\\\\\\\
DB - Today
DB - Today \\2nd result set
Twitter - 3 days ago
Twitter - 4 days ago
This obviously doesn't make much sense when a user sees it as the dates are out.
The only thing I can think is to retrieve all the data from twitter rather than 10 records at a time and then using LINQ do a concatenation of database data and twitter data and then order by date.
Can anyone think of a better way?