Update sorting.htm

The code in the demo for sorting has a couple lines that do not work (at least for me). I have proposed corrected code:
var index = $(this).index();
var ascending = $(this).hasClass('footable-sorted');