Fix sorting issue

TNL-952
nitpick, but you'll get this sooner or later. Take a look at our python guidelines for edx-specific styling things: https://github.com/edx/edx-platform/wiki/Python-Guidelines