I did encounter a bug when writing tests. After using the `CourseEnrollmentFactory` to enroll students `CourseEnrollment.objects.filter(course_id)` was not ordered by pk. I thought this would be the best place to put an ordering query.