I have a table with a custom column of type Button.
The button calls a js query which uses
i to determine which row called it. If the table is not sorted,
mytable.data[i] returns the correct row. However, if I sort table mytable.data[i] returns the wrong row.
i is always the displayed row number, i.e. it will always return 0 if the first row is selected no matter the table sort. As a result clicking the first row's button will always return
mytable.data even if the table is sorted in descending order.