Custom sort for a column
Custom sort for a column
![Kamz](https://secure.gravatar.com/avatar/f7678e0dc83a9d0b192bf642e0a97769/?default=https%3A%2F%2Fvanillicon.com%2Ff7678e0dc83a9d0b192bf642e0a97769_200.png&rating=g&size=120)
Hello,
I have a column with priorities in my datatable (H => High, M => Medium, L => Low).
Is there a way to define how it should be sorted (H > M > L) because actually it's alphabetical (H > L > M) ?
Thank you
This discussion has been closed.
Answers
I found a solution using enum (https://www.datatables.net/plug-ins/sorting/enum)