Skip to content

Commit

Permalink
Always show the same order on the control panel
Browse files Browse the repository at this point in the history
  • Loading branch information
bloodbare committed Jul 16, 2015
1 parent 87110c3 commit f831db3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Products/CMFPlone/PloneControlPanel.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,9 @@ def enumConfiglets(self, group=None):
a['title'] = translate(title,
context=self.REQUEST)

def _title(v):
return v['title']

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

security.declareProtected(ManagePortal, 'unregisterConfiglet')
Expand Down

0 comments on commit f831db3

Please sign in to comment.