Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by steensh on Mar 20, 2008 20:04
open dhtmlx forum
dhtmlxGrid - is sorting algorithm case sensitive?

Hi,

My grid is as follow:

mygrid.setColTypes("link,ro,link");
mygrid.setColSorting("date,na,str")

I sort by 3rd column and it appears that sorting algorithm is not case sensitive. Is it right? What should I do to enable case sensitive sorting algorithm?

thanks
Answer posted by Support on Mar 21, 2008 03:36
Actually "srt" sorting type is case sensitive ( it uses native javascript functionality to compare strings, which is case sensitive )
But when you sorting columns of "link" type - sorting run against the label text ( value of href not used in sorting )
If you need to have case insensitive sorting, please check
             http://dhtmlx.com/docs/products/kb/index.shtml?cat=search&q=1176&ssr=yes&s=sensitive
Answer posted by steensh on Mar 21, 2008 09:24
Ok, thanks. I've already managed this.