Skip to content

Commit

Permalink
sort alphabetically based on the name/text
Browse files Browse the repository at this point in the history
  • Loading branch information
shushugah committed Feb 13, 2024
1 parent ea58aea commit 9c3dce9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chapters.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ permalink: /chapters/
{% assign activity_levels = "active,semiactive,inactive" | split: ','%}
{% for level in activity_levels %}
<h2>{{level | capitalize}} chapters</h2>
{% assign chapters = site.data.chapters.chapters | where:"activity_level",level %}
{% assign chapters = site.data.chapters.chapters | where:"activity_level",level | sort: "text" %}
{% for chapter in chapters %}
<ul class="list-style-none marg-b-3 pad-l-3">
<b>{% if chapter.url %}<a href="{{chapter.url}}">{{chapter.text}}</a>{% else if%}{{chapter.text}}{% endif %}</b>
Expand Down

0 comments on commit 9c3dce9

Please sign in to comment.