You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the UVE page editor, the Content Palette → Sort by Most Popular option displays content types in reverse order — the least-used types appear at the top, and the most-used types sink to the bottom.
Content types with the highest number of existing contentlets appear at the top — i.e. the types editors use most frequently are easiest to find.
Actual Behavior
Content types with the lowest number of contentlets appear at the top. The sort is inverted — effectively showing "Least Popular" first.
Root Cause
The "Most Popular" menu item in the Content Palette hardcodes direction: 'ASC', but ASC on a usage-count sort produces ascending (lowest → highest) order.
// Current (wrong) — ASC = least used first{label: 'uve.palette.menu.sort.option.popular',command: ()=>onSortSelect({orderby: 'usage',direction: 'ASC'}),}
The backend (ContentTypeResource.java:2058–2066) sort logic is correct — DESC produces highest-count-first. The fix is entirely in the frontend.
Fix: Change direction: 'ASC' → direction: 'DESC' for the popular sort option.
History
Introduced in PR #33660 (Content Palette redesign), closing Epic #32640.
Summary
In the UVE page editor, the Content Palette → Sort by Most Popular option displays content types in reverse order — the least-used types appear at the top, and the most-used types sink to the bottom.
Freshdesk ticket: https://dotcms.freshdesk.com/a/tickets/37541
Environment
Steps to Reproduce
Expected Behavior
Content types with the highest number of existing contentlets appear at the top — i.e. the types editors use most frequently are easiest to find.
Actual Behavior
Content types with the lowest number of contentlets appear at the top. The sort is inverted — effectively showing "Least Popular" first.
Root Cause
The "Most Popular" menu item in the Content Palette hardcodes
direction: 'ASC', but ASC on a usage-count sort produces ascending (lowest → highest) order.File:
core-web/libs/portlets/edit-ema/portlet/src/lib/edit-ema-editor/components/dot-uve-palette/utils/index.ts(~line 115)The backend (
ContentTypeResource.java:2058–2066) sort logic is correct —DESCproduces highest-count-first. The fix is entirely in the frontend.Fix: Change
direction: 'ASC'→direction: 'DESC'for the popular sort option.History
Introduced in PR #33660 (Content Palette redesign), closing Epic #32640.