Properly tablesort the hooks