@ -158,7 +158,7 @@ class OdevzdavatkoTabulkaFiltrForm(forms.Form):
for deadline in m.Deadline.objects.filter(
deadline__lte=timezone.now(),
cislo__rocnik=aktualni_rocnik
).order_by("deadline").reverse():
).order_by("deadline"):
result.append((
strftime(DATE_FORMAT, deadline.deadline.timetuple()),