Add sorting to predmety table.