diff --git a/templates/helpers.js b/templates/helpers.js index c5fa45a1..662c9383 100644 --- a/templates/helpers.js +++ b/templates/helpers.js @@ -277,7 +277,7 @@ module.exports = function(docMap, options, getCurrent, helpers, OtherHandlebars) // Sort by docObject "ordered" property ordered.sort(function(x,y) { - return x.docObject.order > y.docObject.order; + return x.docObject.order - y.docObject.order; }); // Insert ordered items to their index in the alphabetical array