diff --git a/lms/djangoapps/mobile_api/models.py b/lms/djangoapps/mobile_api/models.py index 1313d91723..3775cd58bb 100644 --- a/lms/djangoapps/mobile_api/models.py +++ b/lms/djangoapps/mobile_api/models.py @@ -43,10 +43,10 @@ class AppVersionConfig(models.Model): .. no_pii: """ - PLATFORM_CHOICES = tuple([ - (platform, platform) - for platform in PLATFORM_CLASSES.keys() - ]) + PLATFORM_CHOICES = tuple( + [(platform, platform) for platform in sorted(PLATFORM_CLASSES.keys())] + ) + platform = models.CharField(max_length=50, choices=PLATFORM_CHOICES, blank=False) version = models.CharField( max_length=50,