Fix a bug which caused duplicate topics in /lessons/topics/

The complication is that, because topics are ordered by values in
LessonTopicRelation, the same topic appears once for every unique
lesson-topic relation. The solution is to specify a different ordering
when you want actually unique topics.