JSViz: How to apply sort order from Column Properties?

Dear Community,

I am developing a custom visualisation in Spotfire using JSViz Framework. I need to order the data in my visualisation according to custom order. I could do it manually, i.e. write within code, but this is obviously a dirty solution, since if my data change, then I'd need to change it within code. 

Is there any way how we could using JS access information about ordering of some column in data table? I know you can set order in Edit>Column Properties>Sort Order so this information must be stored somewhere.. 

Thank you for any opinion about this. 


(1) Answer