Ignore:
Timestamp:
28 May 2015, 12:58:37 (10 years ago)
Author:
Henrik Bettermann
Message:

Sort items.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py

    r13004 r13010  
    576576    def _set_app_cats(self):
    577577        app_cats = getUtility(IKofaUtils).APP_CATS_DICT
    578         self.app_cats = app_cats.items()
     578        self.app_cats = sorted(app_cats.items())
    579579        return
    580580
    581581    def _set_app_types(self):
    582582        app_types = getUtility(IApplicantsUtils).APP_TYPES_DICT
    583         self.app_types = [(x[0], x[1][0]) for x in app_types.items()]
     583        self.app_types = sorted([(x[0], x[1][0]) for x in app_types.items()])
    584584        return
    585585
    586586    def _set_payment_cats(self):
    587587        payment_cats = getUtility(IKofaUtils).PAYMENT_CATEGORIES
    588         self.payment_cats = payment_cats.items()
     588        self.payment_cats = sorted(payment_cats.items())
    589589        return
    590590
Note: See TracChangeset for help on using the changeset viewer.