I have a custom table that has a custom format to it, which makes it quite impossible to apply existing table sorting plugins.
How do most plugins accomplish this on a standard HTML table.
Just a basic, simple bullets explanation is fine. Just want to get an idea of how it works.
Well, I never took a look at the source of such plugin but I think it works that way.
An HTML table is kind of a matrice, you can probably represent it like this :
Using such matrice, you’re able to reorder like this:
Results in:
Then, you reorder the rows by moving them using the sorted array.
Obviously, you’ll have more complex sort algorithm, but I think basically it is done like this.