Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to sort getChildren() by created date in user macro

tanaji710 I'm New Here Sep 08, 2020

Hi i have created one user macro in which i have used $pageManager.getPage($ in this i am getting list of pages sorded by modified date but i want to sort that childrens by created date how i can do that let me know 

Thanks In Advance!!!

1 answer

0 votes
Bill Bailey Community Leader Sep 08, 2020

You are going to have to bubble sort your array before output. I will point you to a user macro that gives and example of sorting child pages.


Thanks @Bill Bailey i had implemented solution provided by you but still for some spaces it's not providing list sequence same as page tree can you help me to solve this ?

Bill Bailey Community Leader Oct 29, 2020

What order is it presenting the pages? Alphabetically or creating date? Is the page tree manually sorted?

Page Tree is sorted according to Created Date 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence Cloud

Get to know the Confluence team!

Go “behind the screen” to meet some of the Confluence Cloud team. In this video series, we tackle some of the hard-hitting questions you never knew you wanted the answer to!  Meet some of the ...

236 views 0 10
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you