Sort operating systems alphabetically

This commit is contained in:
Jesse Olson 2021-12-15 11:30:26 +00:00
parent 22e877dc3d
commit 665d42d7ee

View File

@ -47,7 +47,7 @@
<div class="row justify-start"> <div class="row justify-start">
<label class="align" for="os">Operating System</label> <label class="align" for="os">Operating System</label>
<select id="os" name="os"> <select id="os" name="os">
{% for os_id, os in operating_systems.items() %} {% for os_id, os in operating_systems.items()|sort %}
<option value="{{ os_id }}">{{ os.description }}</option> <option value="{{ os_id }}">{{ os.description }}</option>
{% endfor %} {% endfor %}
</select> </select>