I am using jQuery DataTables for an internal analytics app and my users want to be able to use custom sort by writing expressions involving multiple columns (eg. "profit / num_orders + account_age") in Javascript. They want complete flexibility of using all columns in arbitrary mathematical expressions.
I have looked at type-based custom sorting and custom data source sorting (as detailed here: http://datatables.net/development/sorting) but cannot figure out a way to implement this.
What is the solution here?