From 6e0dd5b00254e1f7e939265d344596b73dee5c00 Mon Sep 17 00:00:00 2001 From: Mike Peters Date: Thu, 29 Oct 2015 10:41:53 -0700 Subject: [PATCH] feat(): sort pages by URL --- src/dgeni-package/processors/page-data.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/dgeni-package/processors/page-data.js b/src/dgeni-package/processors/page-data.js index f9a7e66..b29d643 100644 --- a/src/dgeni-package/processors/page-data.js +++ b/src/dgeni-package/processors/page-data.js @@ -23,8 +23,9 @@ module.exports = function pageDataProcessor() { url: doc.path == 'index' ? '' : doc.path, label: doc.label || doc.name }; - }). - value(); + }) + .sortBy('url') + .value(); docs.push({ module: 'docsApp.page-data',