Ero sivun ”Widget:ThreadsX” versioiden välillä
Järvi-meriwikistä
Rivi 30: | Rivi 30: | ||
for ( var t in threads ) { threadsA.push( threads[ t ] ); } | for ( var t in threads ) { threadsA.push( threads[ t ] ); } | ||
− | threadsA.sort(function(a,b) { return parseFloat( | + | threadsA.sort(function(a,b) { return parseFloat(a.created) - parseFloat(b.created) } ); |
console.log(threadsA); | console.log(threadsA); |