Ignore:
Timestamp:
30 Mar 2007, 08:10:44 (18 years ago)
Author:
joachim
Message:

fix for #145

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_epayment/getPaymentsFolderInfo.py

    r1634 r1661  
    1414#import logging
    1515#logger = logging.getLogger('Skins.getPaymentsFolderInfo')
     16def cmp_id(a,b):
     17    s1 = "%(id)s" % a
     18    s2 = "%(id)s" % b
     19    if s1 == s2:
     20        return 0
     21    if s1 > s2:
     22        return 1
     23    return -1
    1624
    1725import DateTime
     
    6371    payments.append(row)
    6472
    65 
     73payments.sort(cmp_id)
    6674info['payments'] = payments
    6775return info
Note: See TracChangeset for help on using the changeset viewer.