Sorting by table header title instead of column index
Sorting by table header title instead of column index
![Skarv1](https://secure.gravatar.com/avatar/82d5792c6c54a32c010ce5b06ba8ad7a/?default=https%3A%2F%2Fvanillicon.com%2F82d5792c6c54a32c010ce5b06ba8ad7a_200.png&rating=g&size=120)
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.