Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Kurt on Mar 01, 2009 21:35
open dhtmlx forum
Sort in dhtmlxGrid

Hi team
There are some records like this in my grid.
Initial sort is as follows

ColumnA ColumnB
TEST3
中村
東京
TEST Group

when I click ColumnB twice the sort is as follows

ColumnA ColumnB
TEST3
東京
中村
TEST Group

If I click ColumnB several times (Even) , The results are inconsistent with the original.

Thanks.
Answer posted by Support on Mar 02, 2009 01:43
By default grid uses native sorting functionality of javascript. While fast it doesn't preserve initial order of rows. 
You can enable desired mode by using 

           grid.enableStableSorting(true);