Skip to content

Commit 48aebed

Browse files
committed
Fix sorting
1 parent c58da50 commit 48aebed

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

_layouts/section.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@
1111
<div class="container">
1212
<div class="section">
1313
<div class="section-heading"><span>{{ section.title }}</span></div>
14-
{% assign groups = section.docs | sort_natural: section.sort_by | group_by: 'category' %}
14+
{% 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 %}
1519

1620
{% for row in groups %}
1721
{% if row.name != "" %}

0 commit comments

Comments
 (0)