Hmm can you cite the thread I had originally posted that in? But just based on the code you posted, you might try throwing in the line in red here:
Code:
gfeedfetcher._sortarray=function(arr, sortstr){
arr.reverse()
var sortstr=(sortstr=="label")? "ddlabel" : sortstr
if (sortstr=="title" || sortstr=="ddlabel"){
arr.sort(function(a,b){
var fielda=a[sortstr].toLowerCase()
var fieldb=b[sortstr].toLowerCase()
return (fielda<fieldb)? -1 : (fielda>fieldb)? 1 : 0
})
}
else{ //else, sort by "publishedDate" property (using error handling, as "publishedDate" may not be a valid date str if an error has occured while getting feed
try{
arr.sort(function(a,b){return new Date(b.publishedDate)-new Date(a.publishedDate)})
}
catch(err){}
}
}
Bookmarks