Skip to content

Commit

Permalink
Merge pull request #3094 from plone/erral-issue-721-master
Browse files Browse the repository at this point in the history
Sort control panel items by title (master)
  • Loading branch information
ale-rt authored May 6, 2020
2 parents 7711157 + 44057fc commit 3ecbd73
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Products/CMFPlone/PloneControlPanel.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,10 @@ def enumConfiglets(self, group=None):
a['title'] = translate(title,
context=self.REQUEST)

def _id(v):
return v['id']
res.sort(key=_id)
def _title(v):
return v['title']

res.sort(key=_title)
return res

security.declareProtected(ManagePortal, 'unregisterConfiglet')
Expand Down
2 changes: 2 additions & 0 deletions news/721.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Change control panel item sorting and sort them by title
[erral]

1 comment on commit 3ecbd73

@tkimnguyen
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

Please sign in to comment.