Skip to main content
ranadyutis95334
Level 3
January 14, 2016
Solved

Need to sort tags alphabetically.

  • January 14, 2016
  • 12 replies
  • 8904 views
There are 8 categories of tags that are included in the document library, which all correspond to tags in AEM. The child tags of those categories are displayed when you click the arrow on each category.

 

 

Apparently, these child tags are just shown in the order they appear in the JCR.  Is there a way to sort the child tags  in alphabetical order

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by edubey

Write a OSGI service to do this sorting.

There is one more approach you can try for:

Add a beforesubmit listener in your dialog box and before data gets saved in JCR, sort it with JS

12 replies

harsha006
February 5, 2018

Hi Udaya,

Can you Please elaborate the solution which yo implemented because I have a required that while authoring ,the tags should appear in a sorted way.

February 5, 2018

Hi Harsha and Laura,

I basically modified the OOTB component under /libs/cq/gui/components/common/tagbrowser/tagbrowsercolumn/tagbrowsercolumn.jsp, by overlaying it to my folder and modified the renderer (pointing to my project folder) in tags picker component under /libs/cq/gui/components/common/tagspicker/render.jsp (overlayed this as well)