Changeset 15549


Ignore:
Timestamp:
19 Aug 2019, 11:21:36 (5 years ago)
Author:
Henrik Bettermann
Message:

Sort ApplicationTypeSource? on values.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/interfaces.py

    r15548 r15549  
    113113        appcats_dict = getUtility(
    114114            IApplicantsUtils).APP_TYPES_DICT
    115         return sorted(appcats_dict.keys())
     115        return sorted([item[0] for item in appcats_dict.items()],
     116                      key=lambda value: value[1])
    116117
    117118    def getToken(self, context, value):
Note: See TracChangeset for help on using the changeset viewer.