--- title: Alphabetical description: Returns an ordered taxonomy, sorted alphabetically by term. categories: [] keywords: [] action: related: - methods/taxonomy/ByCount returnType: page.OrderedTaxonomy signatures: [TAXONOMY.Alphabetical] toc: true --- The `Alphabetical` method on a `Taxonomy` object returns an [ordered taxonomy], sorted alphabetically by [term]. While a `Taxonomy` object is a [map], an ordered taxonomy is a [slice], where each element is an object that contains the term and a slice of its [weighted pages]. {{% include "methods/taxonomy/_common/get-a-taxonomy-object.md" %}} ## Get the ordered taxonomy Now that we have captured the “genres” Taxonomy object, let’s get the ordered taxonomy sorted alphabetically by term: ```go-html-template {{ $taxonomyObject.Alphabetical }} ``` To reverse the sort order: ```go-html-template {{ $taxonomyObject.Alphabetical.Reverse }} ``` To inspect the data structure: ```go-html-template
{{ debug.Dump $taxonomyObject.Alphabetical }}
``` {{% include "methods/taxonomy/_common/ordered-taxonomy-element-methods.md" %}} ## Example With this template: ```go-html-template {{ range $taxonomyObject.Alphabetical }}

{{ .Page.LinkTitle }} ({{ .Count }})

{{ end }} ``` Hugo renders: ```html

romance (2)

suspense (3)

``` [ordered taxonomy]: /getting-started/glossary/#ordered-taxonomy [term]: /getting-started/glossary/#term [map]: /getting-started/glossary/#map [slice]: /getting-started/glossary/#slice [term]: /getting-started/glossary/#term [weighted pages]: /getting-started/glossary/#weighted-page