Is there a way to do pre-order
Is there a way to do pre-order
![jyou](https://secure.gravatar.com/avatar/8658ef17c558bb2144a6c4776952977e/?default=https%3A%2F%2Fvanillicon.com%2F8658ef17c558bb2144a6c4776952977e_200.png&rating=g&size=120)
Hi,
By checking the https://datatables.net/reference/event/, we can see 'order' event which will be 'fired when the data contained in the table is ordered.' But what I want to do is that if a condition matches then do sorting, otherwise stop sorting.
Is there a way to do it?
Thanks for your help.
This discussion has been closed.
Answers
Hi @jyou ,
No, that's not possible, I'm afraid - the order isn't cancellable. What you could do though, is redefine the order, as I did in this example here. There, I disabled the original ordering, and created my own on the same header cells - this should work for you.
Cheers,
Colin
Got it. Thanks Colin.