Skip to content
This repository was archived by the owner on Jun 30, 2024. It is now read-only.

Commit 9b1fdae

Browse files
committed
Sorted the list of instructor in-place inside the admin.html file
1 parent 9b70185 commit 9b1fdae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

views/admin/admin.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ <h3>Remove a Current Instructor</h3>
188188
<div class="list-group">
189189
<form method="POST" id="removeins" action="Javascript:remove_instructor();">
190190
<select size="10" id="instructorlist" name="instructor" class="form-control">
191-
{{ for person in instructors: }}
192-
<option value="{{=person}}">{{ =instructors[person] }}</option>
191+
{{ for person in sorted(list(instructors.values()), key=lambda s: str(s).split(" ")[1]): }}
192+
<option value="{{=person}}">{{ =person }}</option>
193193
{{ pass }}
194194
</select>
195195
<div style="text-align: center">

0 commit comments

Comments
 (0)