Skip to content

Commit

Permalink
sort the belts list
Browse files Browse the repository at this point in the history
  • Loading branch information
zardus committed Jan 16, 2024
1 parent dd283de commit d96a33c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dojo_theme/templates/belts.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ <h2>{{belt_color.title()}} Belts</h2>
</p>

<ul style="list-style-image: url({{ url_for("views.themes", path="img/dojo/" + belt_color + ".svg") }})">
{% for user_id in belt_data.ranks[belt_color] %}
{% for user_id in belt_data.ranks[belt_color]|sort(attribute='date') %}
{% set user = belt_data.users[user_id] %}
<li>
<a href="{{ url_for("pwncollege_users.view_other", user_id=user_id) }}"><raw>{{ user.handle }}</raw></a>
Expand Down

0 comments on commit d96a33c

Please sign in to comment.