Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Sort exercises by name in the mobile version as well

Roland Geiderc389d69d4200
diff --git a/wger/exercises/templates/mobile/exercise/overview.html b/wger/exercises/templates/mobile/exercise/overview.html
index cd42afa72..7a9f13a22 100644
--- a/wger/exercises/templates/mobile/exercise/overview.html
+++ b/wger/exercises/templates/mobile/exercise/overview.html
@@ -52,7 +52,7 @@
<div id="collapse-{{item.grouper.pk}}" class="panel-collapse collapse">
<div class="panel-body">
<div class="list-group">
- {% for exercise in item.list %}
+ {% for exercise in item.list|dictsort:"name" %}
<a href="{{ exercise.get_absolute_url }}" class="list-group-item wger-list-group-item">
<div class="media">
<span class="glyphicon glyphicon-chevron-right pull-right"></span>