Knowledge Base
Published Jun. 30, 2025

Sorting Structures by Name in Liferay DXP

Written By

Jose L. Bango

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How to articles!

While we make every effort to ensure this Knowledge Base is accurate,it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Issue

  • The order of Structures when creating Web Content seems to be random. The structures are not sorted alphabetically or by modification date.

Environment

  • Liferay DXP 2024.Q2

Resolution

Web Content Display widget

  1. Go to Control Panel > Instance Settings > Content and Data > Web Content > Web Content Display.
  2. Enable the Sort Structures by Name checkbox.

This sorts structures alphabetically in ascending order. Otherwise, they are sorted by ID.

As explained in the setting description, enabling this might impact performance depending on the number of structures, as sorting happens in memory.

Web Content Administration

You can select your desired order the "More" dialog that appears once you have several structures. This order is persisted.

 

Did this article resolve your issue ?

Knowledge Base