Skip to content

Commit

Permalink
Add sort option
Browse files Browse the repository at this point in the history
Fix #6
  • Loading branch information
clenemt committed Jun 5, 2016
1 parent e298c14 commit a88a9cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion fixtures/fixtures.conf.json
Expand Up @@ -29,6 +29,7 @@
}
},
"docdash": {
"static": true
"static": false,
"sort": true
}
}
4 changes: 3 additions & 1 deletion publish.js
Expand Up @@ -408,6 +408,7 @@ function buildNav(members) {
@param {Tutorial} tutorials
*/
exports.publish = function(taffyData, opts, tutorials) {
var docdash = env && env.conf && env.conf.docdash || {};
data = taffyData;

var conf = env.conf.templates || {};
Expand All @@ -434,7 +435,8 @@ exports.publish = function(taffyData, opts, tutorials) {
helper.setTutorials(tutorials);

data = helper.prune(data);
data.sort('longname, version, since');

docdash.sort !== false && data.sort('longname, version, since');
helper.addEventListeners(data);

var sourceFiles = {};
Expand Down

0 comments on commit a88a9cb

Please sign in to comment.