I am utilizing jquery jtable to showcase some data in a table. I have been using the following code snippet for each field in the table to display the data and enable sorting:
sorting: true,
display: (data) => {
return data.record.<whatever_value>;
}
This method has worked well for all fields except for one, where I need to sort based on a nested object within record. However, using the following code does not yield the desired result:
sorting: true,
display: (data) => {
return data.record.<Nested_Object>.<Nested_value>;
}
I have been unable to pinpoint the issue. Any guidance on resolving this would be greatly appreciated. Thanks.