Fix bug on ordering column with sorttable. Thanks to David Walser for the report.