Does jTemplates foreach preserve the ordering of the collection?
My collection is ordered alphabetically, but when I assign the collection and load the html using jquery jtemplates, things are coming out un-or开发者_如何学运维dered.
{#foreach $T.results as r}
<li>{$T.r.Name}</li>
{#/for}
Is this expected behavior?
Nope
What server code are you using to prepare and send the collection?
精彩评论