Fixed some sorting issues using footable.