With this, the FIRST column (‘a’) sorts properly only. Second one’s sort behaviour is very strange (only 2-3 rows move around when sorted. They get exchanged within themselves. Always the same rows. (My data is being loaded on button press from a POST via AJAX.
As you can see, these is IDENTICAL columns, except a slight change in the ID and in the header. newop[1] contains an array of strings [“A1”,“A2”,…].
(NOTE: For my use case, length of newop[1] is 1, so a single iteration within the loop)
Here’s the strange part. If I remove the newop[1][i] from the ID, (rest everything same); the sort starts that same weird behavior for both columns!
If I replace newop[1][i] with some other variable, again both stop working.
I’ve spend HOURS trying to debug this, but I think it’s safe to conclude that this is a bug. Or am I missing something?