dataTables sorting by hidden value

dataTables sorting by hidden value

HoliHoli Posts: 1Questions: 1Answers: 0

Hello,

I have table based on dataTables with any Bootstrap version. I have few columns and I can sort every column, but it is sorting by alphabet. And I have two columns, which I would like to sort by hidden tag.

For example, in column can be 4 choices. "First, Second, Third, Fourth". If I will sort it, it will be like this "First, Fourth, Second, Third". So i need give every of them hidden tag (1,2,3,4) according to which it will sort. I don't know how.

Here is the code of dataTables: http://jsfiddle.net/7TPWG/

Thanks

This discussion has been closed.