Skip to content

Commit

Permalink
Merge pull request #46841 from rushatgabhane/sort-by-order
Browse files Browse the repository at this point in the history
[No QA][HelpDot] Sort articles by the key "order"
  • Loading branch information
madmax330 committed Aug 6, 2024
2 parents 33a7a29 + 4eb81e5 commit 41e27c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/_includes/section.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ <h1 class="title">

<section>
<div class="cards-group">
{% assign sortedArticles = section.articles %}
{% assign sortedArticles = section.articles | sort: 'order', 'last' | default: 999 %}
{% for article in sortedArticles %}
{% assign article_href = section.href | append: '/' | append: article.href %}
{% include article-card.html hub=hub.href href=article_href title=article.title platform=activePlatform %}
Expand Down

0 comments on commit 41e27c9

Please sign in to comment.