From 0b050466c5120d406b1f375334a2865c9b8c0bff Mon Sep 17 00:00:00 2001 From: Chris Church Date: Tue, 25 Mar 2014 23:06:27 -0400 Subject: [PATCH] AC-1077 Sort playbooks alphabetically (case-insensitive). --- awx/main/models/projects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/models/projects.py b/awx/main/models/projects.py index 5a95c4d648..96785975ae 100644 --- a/awx/main/models/projects.py +++ b/awx/main/models/projects.py @@ -195,7 +195,7 @@ class ProjectOptions(models.Model): if 'tasks' in playbook.split(os.sep): continue results.append(playbook) - return results + return sorted(results, key=lambda x: unicode(x).lower()) class Project(UnifiedJobTemplate, ProjectOptions):