Skip to content

Commit f1b1e12

Browse files
authored
Order browse by topics alphabetically
1 parent 1f01189 commit f1b1e12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ <h1>Simon Willison: TIL</h1>
7979
</form>
8080

8181
<p><strong>Browse by topic:</strong>
82-
{% for row in sql("select topic, count(*) as num_tils from til group by topic order by max(created_utc) desc", database="tils") %}
82+
{% for row in sql("select topic, count(*) as num_tils from til group by topic order by topic", database="tils") %}
8383
<a title="{{ row.num_tils }} TIL{{ "s" if row.num_tils > 1 else "" }}" href="/{{ row.topic }}">{{ row.topic }}</a> {{ row.num_tils }}{% if not loop.last %} &middot;{% endif %}
8484
{% endfor %}
8585
</p>

0 commit comments

Comments
 (0)