We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c58da50 commit 48aebedCopy full SHA for 48aebed
_layouts/section.html
@@ -11,7 +11,11 @@
11
<div class="container">
12
<div class="section">
13
<div class="section-heading"><span>{{ section.title }}</span></div>
14
- {% assign groups = section.docs | sort_natural: section.sort_by | group_by: 'category' %}
+ {% if section.sort_by == 'title' %}
15
+ {% assign groups = section.docs | sort_natural: section.sort_by | group_by: 'category' %}
16
+ {% else %}
17
+ {% assign groups = section.docs | sort: section.sort_by | group_by: 'category' %}
18
+ {% endif %}
19
20
{% for row in groups %}
21
{% if row.name != "" %}
0 commit comments