If we trace back Haruhi's history, we can tell this much:
By the way, it appears that for the DVD release, the episode ordering will be different from the anime. Which means... they're probably putting the episodes back into the right order (Haruhi's order by the timeline) for the DVDs.