TiddlySpace/tiddlyspace — Issue #868: initial load by ts-sockets.js gets order wrong
Author: cdent
Created: 2012-01-12 10:29:47+00:00
State: open

replicate:

* load up tiddlyspace.com and look at the three tiddler titles in the socket feed
* in another tab load: http://tiddlyspace.com/search?q=

Unless there is current write activity, the tiddlers in the socket feed will be from the bottom, not top, of the results list in the other tab.

This seems to be happening because the tiddler at the top of the list is being pushed onto the transitionUI stack, it should probably be the other way round. Two ways to fix this might be:

```
-url: "/search?q=_limit:20",
+url:"/search?q=_limit:20;sort=modified",
```

or, in the loop that follows, set i = tiddlers.length - 1 and count down in the loop instead of up. Could also exit the loop after 3 transitions, even if length is longer?