Skip to content

Commit 00248c6

Browse files
authored
Merge pull request #315 from canjs/child-sort-order
Fix ordering children within a group
2 parents d752de2 + ad85657 commit 00248c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ module.exports = function(docMap, options, getCurrent, helpers, OtherHandlebars)
277277

278278
// Sort by docObject "ordered" property
279279
ordered.sort(function(x,y) {
280-
return x.docObject.order > y.docObject.order;
280+
return x.docObject.order - y.docObject.order;
281281
});
282282

283283
// Insert ordered items to their index in the alphabetical array

0 commit comments

Comments
 (0)