From 03d191fec61c3dcef96ad4acf5b9c237938939b7 Mon Sep 17 00:00:00 2001 From: Ricardo N Feliciano Date: Wed, 13 Dec 2017 18:37:25 -0500 Subject: [PATCH] Mention Reverse function in taxonomy tpl page. --- content/templates/taxonomy-templates.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/content/templates/taxonomy-templates.md b/content/templates/taxonomy-templates.md index 1b65663f3..9e1f4626f 100644 --- a/content/templates/taxonomy-templates.md +++ b/content/templates/taxonomy-templates.md @@ -78,6 +78,9 @@ A Taxonomy is a `map[string]WeightedPages`. .ByCount : Returns an OrderedTaxonomy (slice) ordered by number of entries. +.Reverse +: Returns an OrderedTaxonomy (slice) in reverse order. Must be used with an OrderedTaxonomy. + ### OrderedTaxonomy Since Maps are unordered, an OrderedTaxonomy is a special structure that has a defined order. @@ -160,6 +163,17 @@ Taxonomies can be ordered by either alphabetical key or by the number of content ``` +### Order by Least Popular Example + +``` + +``` + ## Order Content within Taxonomies