Closed andy-dorman closed 8 years ago
Hi Andy,
Sorry for the late answer.
There's no way to change the sort order inside the docs
, except manual reordering. Anyway, I've added the @sortOrder tag and it's support to 'docs' and 'guide' mapper.
See https://github.com/wingedfox/dgeni-alive/blob/master/src/packages/navigation/tag-defs/sort-order.js https://github.com/wingedfox/dgeni-alive/blob/master/src/packages/navigation/processors/nav-area-mapper/guide.js#L18
Also, sortBy
mapper field is configurable as well and you can use
.config(function(navigationMapper_GUIDE) {
navigationMapper_GUIDE.sortBy.unshift('myCustomProp');
});
I've added a config call that processes @sortOrder markup in my documents:
that looks like this:
and that this is allowing me to write markup that looks like this
and I can see that this is being processed correctly in a subsequent processor:
that looks like this
How can I get this ordering to be respected in the subsequent mapper processors? I'm sure I'm simply misunderstanding the order of things in dgeni...