I'm using jquery jtable to display some data to a table. For each field in the table, I use something along the lines of this to display the data and support sorting:
sorting: true,
display: (data) =>{
return data.record.<whatever_value>;
}
And this works for every field I have in the table, except for one in which I need to sort based on a nested object within record. But it doesn't work it I do this instead:
sorting: true,
display: (data) =>{
return data.record.<Nested_Object>.<Nested_value>;
}
I cannot for the life of me figure out what the issue is. If anybody can point me in the right direction, I'd really appreciate it. Cheers.