diff --git a/LogBot/template.html b/LogBot/template.html index 62e0811..7be7bf3 100644 --- a/LogBot/template.html +++ b/LogBot/template.html @@ -9,13 +9,17 @@

{{ title }}

- {% for num, msg in db.items() %} + {% set sorted = [] %} + {% for num in db %} + {% set int_num = num | int %} +
{{ sorted.append(int_num) }}
+ {% endfor %} + {% for num in sorted | sort %}
-

[{{ num }}]

-

{{ msg }}

+

[{{ num | string }}]

+

{{ db[num|string] }}

- {% endfor %}