Sorting by table header title instead of column index
Sorting by table header title instead of column index

When initializing the datatable, I would like to be able to use the table headers titles instead of having to identify the index of these headers. Is this possible, and if not - has anyone made a efficient function for this? The purpose would be a more understandable configuration for other admins - it makes more sense to specify sorting by words instead of a index system. Check out the example below to get a better idea of what I am trying to do.
This discussion has been closed.