xxxxxxxxxx
// serverOperation must be false
// on the column description add
.Sortable(s => s.Compare('jsFunc'));
// the function returns a normal sort function
const jsFunc = (a, b, desc) => {
if (desc) {
return b.field > a.field ? -1 : b.field > a.field ? 1 : 0;
}
return a.field < b.field ? -1 : a.field < b.field ? 1 : 0;
}