Add sorting to exercises page