Fixes reordering for the closed session table.