CMS Development

CarolineLane
参加者

Sorting blog posts alphabetically

解決

Hello!

 

I created a dictionary using a blog https://www.naturalinsight.com/retail-dictionary

 

I would like to order the posts alphabetically instead of publishing date. Is there a way to do that?

 

Thanks!

 

Caroline

0 いいね!
1件の承認済みベストアンサー
Jsum
解決策
キーアドバイザー

Sorting blog posts alphabetically

解決

You can use a sort filter on your contents loop

{% for content in contents|sort(False, False, 'name') %}

{% endfor %}

元の投稿で解決策を見る

2件の返信
Jsum
解決策
キーアドバイザー

Sorting blog posts alphabetically

解決

You can use a sort filter on your contents loop

{% for content in contents|sort(False, False, 'name') %}

{% endfor %}
LPM
トップ投稿者 | Diamond Partner
トップ投稿者 | Diamond Partner

Sorting blog posts alphabetically

解決

But this will only sort what's currently on the page, i.e the current loop.

0 いいね!