# Changing Tag order

**URL:** <https://forum.ghost.org/t/changing-tag-order/14268>\
**Category:** Developer help\
**Created:** [May 12, 2020, 10:57am UTC](https://forum.ghost.org/t/changing-tag-order/14268 "2020-05-12T10:57:54Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![drichard](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/drichard/32/1658_2.png) [@drichard](https://forum.ghost.org/u/drichard)\
**Post date:** [May 12, 2020, 10:57am UTC](https://forum.ghost.org/t/changing-tag-order/14268/1 "2020-05-12T10:57:55Z")

</div>

so as you can see here

> **[Dominique Richardson | Hagerstown & DC Wedding Photographer](https://www.dominique-richardson.com/)**
>
> Wedding Photographer providing photography services for Hagerstown Maryland and the DC area.

my tags are in alphabetical order

I would like to have the opposite

I see here it gives some insight on how I can make the change

> **[Ghost Handlebars Theme Helpers: get](https://ghost.org/docs/themes/helpers/get/)**
>
> Make custom queries to the Ghost API using the get helper and fetch publicly available data. Read more about Ghost themes! 👻

all I should have to do now is figure out where in the theme code it’s referring to “asc” and change it to “desc”

I have been right-clicking and inspecting / command f-ing for an hour… can anyone point me in the right direction, please.

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [May 12, 2020, 4:18pm UTC](https://forum.ghost.org/t/changing-tag-order/14268/2 "2020-05-12T16:18:13Z")

</div>

If you share the theme code that lists the tags, we can help you by suggesting changes 😉

---

<div class="post-metadata">

**Author:** ![drichard](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/drichard/32/1658_2.png) [@drichard](https://forum.ghost.org/u/drichard)\
**Post date:** [May 12, 2020, 4:22pm UTC](https://forum.ghost.org/t/changing-tag-order/14268/3 "2020-05-12T16:22:06Z")

</div>

~~that’s the thing I have looked through the default.hbs idex and post.hbs and I dont see where tags are mentioned~~ lol I’m slow  
{{!\< default}}

{{#contentFor “styles”}}

 .owl .owl-prev:before { content: "{{t 'Prev'}}"; } .owl .owl-next:before { content: "{{t 'Next'}}"; } 

{{/contentFor}}

 {{#get "tags" limit="all"}} 
 {{#foreach tags}} 
 {{#if feature\_image}} ![{{name}}](data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==) {{/if}} 

## {{name}}
 {{#if description}}
{{description}}
{{/if}} 

 {{/foreach}} 
 {{/get}}

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [May 12, 2020, 4:27pm UTC](https://forum.ghost.org/t/changing-tag-order/14268/4 "2020-05-12T16:27:16Z")

</div>

Do you see a reference to `{{#get}}` anywhere? What theme are you using? Do you have any custom routes?

---

<div class="post-metadata">

**Author:** ![drichard](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/drichard/32/1658_2.png) [@drichard](https://forum.ghost.org/u/drichard)\
**Post date:** [May 12, 2020, 4:28pm UTC](https://forum.ghost.org/t/changing-tag-order/14268/5 "2020-05-12T16:28:29Z")

</div>

sorry I updated the post

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [May 12, 2020, 4:30pm UTC](https://forum.ghost.org/t/changing-tag-order/14268/6 "2020-05-12T16:30:23Z")

</div>

Hmm, try changing this line:

`{{#get "tags" limit="all"}}`

to this"

`{{#get "tags" limit="all" order="name desc"}}`

---

<div class="post-metadata">

**Author:** ![drichard](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/drichard/32/1658_2.png) [@drichard](https://forum.ghost.org/u/drichard)\
**Post date:** [May 12, 2020, 4:36pm UTC](https://forum.ghost.org/t/changing-tag-order/14268/7 "2020-05-12T16:36:28Z")

</div>

so I’m gonna try this

```auto
{{!< default}}

{{#contentFor "styles"}}
  <style>
    .owl .owl-prev:before {
      content: "{{t 'Prev'}}";
    }
    .owl .owl-next:before {
      content: "{{t 'Next'}}";
    }
  </style>
{{/contentFor}}

<div class="content-area">
  <main class="site-main kg-width-full">
    {{#get "tags" limit="all" order="name desc"}}
      <div class="tag-feed owl">
        {{#foreach tags}}
          <div class="tag u-placeholder">
            {{#if feature_image}}
              <img class="tag-image lazyload u-object-fit"
                data-src="{{img_url feature_image}}"
                src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
                alt="{{name}}"
              >
            {{/if}}
            <div class="tag-content">
              <h2 class="tag-name">{{name}}</h2>
              {{#if description}}<div class="tag-description">{{description}}</div>{{/if}}
            </div>
            <a class="u-permalink" href="{{url}}"></a>
          </div>
        {{/foreach}}
      </div>
    {{/get}}
  </main>
</div>

```

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [May 12, 2020, 4:37pm UTC](https://forum.ghost.org/t/changing-tag-order/14268/8 "2020-05-12T16:37:01Z")

</div>

Yep!

---

<div class="post-metadata">

**Author:** ![drichard](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/drichard/32/1658_2.png) [@drichard](https://forum.ghost.org/u/drichard)\
**Post date:** [May 12, 2020, 4:39pm UTC](https://forum.ghost.org/t/changing-tag-order/14268/9 "2020-05-12T16:39:52Z")

</div>

MY MAN THANK YOU …pm me your cashapp or venmo so I can pay you for the help!

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [May 12, 2020, 4:40pm UTC](https://forum.ghost.org/t/changing-tag-order/14268/10 "2020-05-12T16:40:27Z")

</div>

Don’t worry about it, it was a simple fix!
