squashed some bugs, table should now sort by column (click on column
header)