Sorting the spacetree by name

Is there a possibility to sort the to spacetree by name? If not that would be a very useful extension.

1 answer

1 accepted

1 vote
Answer accepted

Do you mean you want to sort the pages by title, as it is possible with the Page Tree Macro? That would indeed be a useful extension. Please follow the progress of this issue. For other feature requests please report them here:

Not the pages (they are already sorted), but the (sub)-spaces. As in the "subspaces" plugin:


Thank you!

Edited: doesn't look like it from vendor page. You could contact them since it's a commercial plugin.

We are talking about spacetree, not subspaces. That was just an example of how it works in subspaces. But the following code doesn't work in spacetree:


The spaces should already be sorted by name:

  • If you leave the spaceCategories parameter blank, all spaces will be displayed ordered by name.
  • If you define one or multiple spaceCategories, the space categories will have the same order as you specify them in the parameter, but the spaces per category will be ordered by name.

The pages are currently sorted by position as default. If your pages have been ordered manually, it will respect the defined order. Otherwise the pages will be displayed in the 'natural' alphabetical order.

Strange... When I first configure the "subspaces" plugin and then set the spaceCategory for the spacetree, it doesn't work (see space "aaa" on screenshot). But it works when I first set the spaceCategory (see space "ABC" on screenshot).


This "workaraound" works for me.

Sorry, the sorting of the spaces was case sensitive. This should be fixed now in version 1.0.2 released today. The macro now also provides some advanced sorting options, like the Page Tree macro does.

Thanks for your help resolving this issue!

Thank you very much!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 13, 2019 in Marketplace Apps

Marketplace Spotlight: Marketing apps for Confluence to keep your teams working on the same page


275 views 0 7
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you