Is it possible to sort a DataTable column using a custom function?

I have a DataTable that includes a numerical column:


Is it possible to sort this column using a custom function (e.g by absolute value)?

There is not currently any functionality like this.

I ran into the same issue and can’t find a solution in the manual. As the discussion is a few years old: Is there a functionality for this by now?

No, and as far as I can see no one has ever made a GitHub Issue to suggest it, which would be a necessary precondition to considering it for future development.

Note that all table sorting is purely in-the-browser work, so the only kind of solution would be a “CustomJS”-type of thing.