Skip to content

Commit 9d0b4d0

Browse files
committed
changed .sort() to sorted(<LIST_NAME>)
1 parent d75925b commit 9d0b4d0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pybot/endpoints/slack/message_templates/commands.py

Lines changed: 3 additions & 3 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.sort()
32+
{"text": service, "value": service} for service in sorted(services)
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.sort()
47+
{"text": skillset, "value": skillset} for skillset in sorted(skillsets)
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.sort()
68+
{"text": mentor, "value": mentor} for mentor in sorted(mentors)
6969
],
7070
},
7171
{

0 commit comments

Comments
 (0)