learning-unlimited/ESP-Website — comment on commit 2295173fe9e1d569667ee24c7440b72a989387de
File: esp/esp/program/models/class_.py line 970
By aseering:

Doing so with SQL/Django would defeat any caching on meeting_times, if it's a QuerySet that has already been evaluated.

Doing so with Python would work but would be slower if meeting_times isn't cached. But really, who's going to pass in so many meeting times to this function that sorting them is a nonnegligible cost? So perhaps that would be reasonable. Then it's no longer a QuerySet, though; not sure if that would break anything?