DhtmlxGrid Sorting on equal values

Hi ,



I have written my custom sorting function , and it is working fine when the values are unequal , but when all the values are equal , the grid appears to be refreshed , ideally it should not since all values are equal .



Following is the snippet from javascript function , however its not working.Could you please help me in refining the logic.



if (a==b) {

                    return // what ; I tried with 0 but not working

                }

                if (order==“asc”) {

                return (a>b?1:-1);

                    

                }

                 else {

            return (a<b?1:-1);

                }

Default javascript sorting in unstable ( en.wikipedia.org/wiki/Stable_sorting )
You can enable stable sorting in grid by using
grid.enableStableSorting(true);