/* document.write('Atlas and Mapping Skills TRB Curriculum Links'); document.write('Books for Future Scientists Teacher Notes'); document.write('Fast Zone'); document.write('Learn-Abouts'); document.write('Mac Australia Curriculum Links'); document.write('Momentum Text Types'); document.write('National Geographic Theme Sets'); document.write('NSW Milestones in Maths - Answers'); document.write('QLD Milestones in Maths - Answers'); document.write('Springboard Teacher Notes'); document.write('Springboard Scope and Sequence Charts'); document.write('Winners! Teacher Notes'); */ ArticleIndex.prototype.printTeacherSupport = function() { this.stories.sort(compareTitle); // sort in alpha order for(var i = 0; i < this.stories.length; i++) { document.write('',unescape(this.stories[i].viewTitle),''); } }; var articleIndex = new ArticleIndex(); articleIndex.addSearch('([SectionPath]=Related Resources)+and+([WebStatus]=Posted)',1,100,'3'); articleIndex.loadSearch(); //articleIndex.sortStoriesTitle(); //articleIndex.recreateViewResults(); articleIndex.printTeacherSupport(); function compareTitle(aValue1, aValue2) { if (typeof(aValue1)== 'undefined') { return 1 } if (typeof(aValue2)== 'undefined') { return -1 } if(unescape(aValue1.viewTitle) < unescape(aValue2.viewTitle)) { return -1; } if(unescape(aValue1.viewTitle) > unescape(aValue2.viewTitle)) { return 1; } return 0; }