Skip to content

Commit 1accbca

Browse files
committed
alphabetize options presented to users of Mentor Request
1 parent 1aef63a commit 1accbca

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

pybot/endpoints/slack/message_templates/commands.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def mentor_request_attachments(services, mentors, skillsets):
2929
"text": "Service",
3030
"name": "service",
3131
"options": [
32-
{"text": service, "value": service} for service in services
32+
{"text": service, "value": service} for service in services.sort()
3333
],
3434
}
3535
],
@@ -44,7 +44,7 @@ def mentor_request_attachments(services, mentors, skillsets):
4444
"text": "Skillset",
4545
"name": "skillset",
4646
"options": [
47-
{"text": skillset, "value": skillset} for skillset in skillsets
47+
{"text": skillset, "value": skillset} for skillset in skillsets.sort()
4848
],
4949
},
5050
{
@@ -65,7 +65,7 @@ def mentor_request_attachments(services, mentors, skillsets):
6565
"text": "Specific Mentor",
6666
"name": "mentor",
6767
"options": [
68-
{"text": mentor, "value": mentor} for mentor in mentors
68+
{"text": mentor, "value": mentor} for mentor in mentors.sort()
6969
],
7070
},
7171
{
@@ -99,9 +99,9 @@ def mentor_request_attachments(services, mentors, skillsets):
9999
"name": "group",
100100
"value": "",
101101
"options": [
102-
{"text": "Veteran", "value": "Veteran"},
103102
{"text": "Active Duty", "value": "Active Duty"},
104103
{"text": "Military Spouse", "value": "Military Spouse"},
104+
{"text": "Veteran", "value": "Veteran"},
105105
],
106106
}
107107
],

0 commit comments

Comments
 (0)