Skip to content

Commit

Permalink
Reverse the order. 1 goes first.
Browse files Browse the repository at this point in the history
Co-authored-by: Zeger-Jan van de Weg <[email protected]>
  • Loading branch information
joepavitt and ZJvandeWeg authored Jul 7, 2023
1 parent 9e708c8 commit 8185c41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ module.exports = function(eleventyConfig) {

function sortChildren (a, b) {
// sort children by 'order', then alphabetical
return (b.order - a.order) || a.name.localeCompare(b.name)
return (a.order - b.order) || a.name.localeCompare(b.name)
}

nav[tag].groups = Object.values(groups).sort(sortChildren)
Expand Down

0 comments on commit 8185c41

Please sign in to comment.