Grid Sorting

Hi,
Is it possible to call the customer sorting functions this way
mygrid.sortRows(0,“customIntegerSort”,“des”);

function customIntegerSort(a,b,order){    alert(‘integer’);
  a = a.replace(/(<[^>]>|$|,)/g,"");
  b = b.replace(/(<[^>]
>|$|,)/g,"");
  return (parseFloat(a) > parseFloat(b)?1:-1)*(order==“asc”?1:-1);
}

This will work for pro version, just be sure that customIntegerSort visible in global scoope.