Optional
isOptional
sortOptional
sortOptional
sortA callback function that gets called when sorting the data in the column.
null
amountSortCompareFunction(obj1, obj2) {
const aWorkPhone = resolveExpression(a, "workPhone");
const bWorkPhone = resolveExpression(b, "workPhone");
const aExtension = aWorkPhone.split("x")[1];
const bExtension = bWorkPhone.split("x")[1];
return aExtension.localeCompare(bExtension);
}
https://www.reactdatagrid.com/examples?expample=Sort_Options
Optional
sortTo sort this column numerically.
false
https://www.reactdatagrid.com/examples?expample=Sort_Options
Generated using TypeDoc
To sort this column insensitive of case. Only set this to true for string data, if you set this to true for numeric or date data, the sort results will be incorrect.
Property
Default
false
See
https://www.reactdatagrid.com/examples?expample=Sort_Options