table: make sure problems are sorted