Hello Thomas,
Thank You for the options provided by you.
For the first option, if I search a view by writing the code in Search properties of view. Then the "diamond" to control the sort column disappears.
For the second option, I have also tried to sort the collection by writing following SSJS Function.
function SortDocumentCollection(vc, strKeyFieldName)
{
var a=0
var sortkeyarray=new Array();
var ent:NotesViewEntry=vc.getFirstEntry();
var UNIDStr="";
while(ent!=null)
{
sortkeyarray[a]=new Array(2);
sortkeyarray[a][0]=ent.getColumnValues()[0];
sortkeyarray[a][1]=ent.getUniversalID();
ent=vc.getNextEntry(ent)
a=a+1
}
sortkeyarray.sort();
sortkeyarray.reverse();
for(c=0;c<@Elements(sortkeyarray);c++)
{
doc=db.getDocumentByUNID(sortkeyarray[c][1])
sdc.addDocument(doc)
}
return sdc;
}
But it takes hell lot of time to sort data and for 6000+ data (I have around 20000-25000 data to display), it eventually fails and doesn't return any result.
Could you please help me with any faster SSJS method for sorting Collection ore any other way to sort the results.
Anirban