add a table change event after sorting

i made little fix by adding a table change event after sorting

lines 44 and 77