Sort teacher classrooms by period, fixes #18