1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 01:21:21 +03:00

AC-1077 Sort playbooks alphabetically (case-insensitive).

This commit is contained in:
Chris Church 2014-03-25 23:06:27 -04:00
parent ac0927f430
commit 0b050466c5

View File

@ -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):