I was getting this same error, and it was because I had multiple footables
on the same page, and basically the second table was overwriting the first table. So the reason I was getting the error is because I was trying to sort on a columnindex
that didn't exist in the second table.
Anyway, I reported it as a bug https://github.com/bradvin/FooTable/issues/132, and it has been fixed, so if your having the same issue that I was having, re-download V2
and that should fix it.